Results 1 to 4 of 4

Thread: Open image link in new window using HTML

  1. #1
    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?

  2. #2
    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>

  3. #3
    Join Date
    Oct 2005
    Posts
    2,394

    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> .

  4. #4
    Join Date
    May 2008
    Posts
    2,302

    Re: Open image link in new window using HTML

    To do this with images you have to do like the following:

    <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.

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •