View Full Version : Open Link in popup Window Question

03-19-2009, 09:35 PM
Hi I was fiddling around with this script: http://www.javascriptkit.com/script/cut174.shtml and I am trying to get the hyperlink to open in a popup window, or at the very least a new page and I can't quite get it.

Any help is much appreciated.


<a href="javascript:linkrotate(document.mygallery.picture.selectedIndex)" onMouseover="window.status='';return true"></a>

Old Pedant
03-19-2009, 10:57 PM
Forget that code. Inappropriate for a popup.

Do you want the popup to be *JUST* the image? Or do you want it to be an HTML page that has the image as PART of it??

If JUST the image, it's absolutely trivial:

<a href="javascript:window.open('myUncle.jpg','POPUP','height=400,width=200');">My Uncle</a>

Naturally, you would want to size the height & width to match the image.

03-19-2009, 11:56 PM
Yeah it is an image, thanks so much OP!