MattBlack MattBlack - 1 year ago 90
HTML Question

HTML img src not absolute

I have an image within an iframe:

<img src="www.******" height="100" width="100">

The image doesn't load, when I select the image address when its run in the browser it shows that it is trying to get the image from the directory below rather than the one specified in the img tags.


It appears to be appending a base url..

Does anyone have any idea why this is happening and how I stop this from happening?

Answer Source

Just use fully qualified web address with "http://" or "https://" if its secure that will solved your problem like,

<img src="http://******" height="100" width="100">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download