I thought this was easy but it seems not. I want to create a link that opens an image in a new window. It links directly to the image like this: <a href="images/globe.jpg">open image in new window</a> This works fine in Safari but not FF or IE !!! Is Safari more intelligent and can show the picture? IE just shows a red cross.
Simple fix, just put target=_new or target=_blank after the url. Example <a href="images/globe.jpg" target=_blank>open image in new window</a> I'm not completely sure of all the differences in target=_new and target=_blank, but when you enter _new it opens the image in a new tab (in mozilla, haven't tried IE) and _blank opens a new window
No it still shows the red X in IE. As a correction, it does work in FF so it seems IE is the culprit.
Interesting...I put the full url path in ie. http://mysite987.com/images/globe.jpg and it looked like it was loading the image (file is 130k) but then just displayed the red cross!
the problem is on the path that you mentioned. <a href="../images/globe.jpg" target="_blank">Text</a>
Sorry I was just simplifying the code for the forum, it was coded correctly. Perhaps someone could try this their end and check to see if the image opens in IE? Would really appreciate it
<a href="images/globe.jpg" target="_new">New Window</a> <a href="images/globe.jpg" target="_blank">New Tab</a> This link could help you: http://support.microsoft.com/kb/q180176/
Thanks, but it's not so much the 'new window' aspect but that I can't get the image to open from a link
<a href="images/globe.jpg" target="_new">New Window</a> <a href="images/globe.jpg" target="_blank">New Tab</a> <a href="images/globe.jpg" target="_blank" title="SEO Friendly">SEO Friendly</a> it's good for SEO i think
Thankfully I have now fixed the problem. The jpg file was cmyk instead of rgb! Schoolboy error on my part but funny how Safari and FF has the brains to render it but crappy IE doesn't!
Glad you figured it out. I've also had a lot of trouble with IE when I do certain coding to my website.