Open image link in new window using HTML
Good evening,
So i'm learning the basics of web designing, i got some home work to do, i have to make a web page with lot of images and images that too with different links. I know how to put links on images but however i clicks then it gets open in same window. I'm testing that in firefox. I want to open images links in new tab or new window. How can i make function for that?
Re: Open image link in new window using HTML
Yes you can do it easily , for this you have to specify target parameter in "<a>" Tag. You can use the HTML code on this page to force a link to open in a new window.
For example:
Code:
<a href="http://www.techarena.in" target="_blank">Techarena</a>
Re: Open image link in new window using HTML
Refer to this thread : http://forums.techarena.in/software-...nt/1184576.htm , its not about only image link, any link can be open in new new window. Just you have to use <a href="url" target="_blank"></a> .
Re: Open image link in new window using HTML
To do this with images you have to do like the following:
Quote:
<a href="http://forums.techarena.in" target="_blank">
<img src="http://gallery.techarena.in/data/515/255photoExt4_big.jpg" />
</a>
There is also a way to do this using JavaScript, which gives you more options on the appearance of the new window.