SteveMersereau
Technical User
This is what I want...!
User clicks on an image link, a pop up window opens with a bigger version of the image. So far, so simple! The problem I'm having is passing a variable to the function to define the size of the opened window.
The code I've got is this;
in the Head and
for the link. The window is opening fine but no matter how I fiddle with the quotation marks/apostrophes etc the window always opens at the same (wrong) size.
Any ideas?
Love
Steve
"In the Jungle of the Senses"
User clicks on an image link, a pop up window opens with a bigger version of the image. So far, so simple! The problem I'm having is passing a variable to the function to define the size of the opened window.
The code I've got is this;
Code:
<SCRIPT language=JavaScript>
<!--
function newWindow(winSource,winWidth,winHeight)
{
openedWindow=window.open(winSource, 'openedWin', 'width=winWidth, height=winHeight, border=0,left=100,top=100,toolbar=no,scrollbars=no,location=no,resizable=no')
openedWindow.focus()
}
//-->
</SCRIPT>
Code:
<a href="javascript:newWindow('chemistry.htm',238,395)"><img src="Chemistry_a.JPG" width="100" height="166" border="1" alt="Essential Chemistry"></a>
Any ideas?
Love
Steve
"In the Jungle of the Senses"