Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Open image link in new window using HTML

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 09-07-2009
Member
 
Join Date: Apr 2008
Posts: 51
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?

Reply With Quote
  #2  
Old 09-07-2009
Member
 
Join Date: Mar 2008
Posts: 198
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>
Reply With Quote
  #3  
Old 09-07-2009
Member
 
Join Date: Oct 2005
Posts: 2,388
Re: Open image link in new window using HTML

Refer to this thread : open link in new tab html code , 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> .
Reply With Quote
  #4  
Old 09-07-2009
Member
 
Join Date: May 2008
Posts: 2,289
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Open image link in new window using HTML"
Thread Thread Starter Forum Replies Last Post
To open a link from Google, I have to open in a new tab or window Bindaas-ER Technology & Internet 3 07-03-2011 03:02 AM
open link in new tab html code bigboy Software Development 4 16-12-2009 02:24 PM
How to open link in new window using PHP Harmony60 Software Development 3 14-10-2009 11:06 PM
A link dosent open in New window in Internet Explorer why? Sawantji Technology & Internet 3 16-01-2009 05:38 PM
Can't open a link in new window in IE6 rupak Technology & Internet 3 12-01-2009 05:11 PM


All times are GMT +5.5. The time now is 12:41 PM.