Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image to close window

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have an image within a pop-up window, however, I would like to be able to click on this image, to close down the current pop-up window, and return back to the original page where the pop-up window originated from.

Can anyone give me any clues?
 
Hi,

How about this:

<img src=&quot;image1.gif&quot; onclick=&quot;window.close()&quot;...

It works in IE6.0 - not tested on other browsers.

Cheers,
Richard
 
This should work in all the major browsers:
Code:
<a href=&quot;javascript:close()&quot;>
 <img src=&quot;myImage.gif&quot; border=&quot;0&quot;>
</a>
bluebrain.gif
blueuniment.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top