prabjot
prabjot

Reputation: 1

<img src> not working with google chrome

hi i m not able to load an image in chrome using img src="E:\pic1.jpeg" when i run this code in internet explorer its working bt not in chrome . on the other hand when i give the name of image instead of path in src then its working ...

plz help ... regards Prabjot

Upvotes: 0

Views: 4702

Answers (2)

Brian Ball
Brian Ball

Reputation: 12616

Chrome probably doesn't handle file system paths (or at least not without using file://). Even if this did work, that link would only work on your local machine as the person browsing your website wouldn't have an image at that location.

You should be using URLs for your resources (i.e. images), not file paths.

Upvotes: 1

tamarintech
tamarintech

Reputation: 1992

Have you tried using file:// to prefix your image local path?

Upvotes: 0

Related Questions