Question:

How to open a url in another window?by clicking on an image?

by  |  earlier

0 LIKES UnLike

How to open a url in another window?by clicking on an image?

 Tags:

   Report

2 ANSWERS


  1. Do you want the html code to do that?  You need to have a link that uses a picture for the hot spot and a target attribute of blank or _blank.  blank uses a new window unless one was already opened by that browser window or related group of windows, _blank will always use a new window.

    <a href="http://www.example.com" target="blank"><img src="yourpic.jpg" width="50" height="20"></a>

    Use a smallish picture (as in only a few kb in size) and you can use height and width attributes to make it fit the area you want.  Those numbers I gave mean pixels.  The picture can be a jpg or a gif or whatever type you like.


  2. Right click on the image and select "Open in another window" or "Open in another tab"

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.