Hi,
I’m using Javascript to make my pop-up windows.
I want to make multiple pop-up windows on one page, but I’m having trouble because the height and width commands in my html script make all the pop-up windows the same size.
I want each pop-up window to have its own height and width specification.
Here’s the code I’m using…
<html>
<head>
<title>pop-up test</title>
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400, height=200,left=50,top=100,resizable=0,scrollbars=yes');
return false;
}
//-->
</SCRIPT>
</head>
<body>
<a href="006_pop_win.html" onClick="return popup(this, '0006Jenny')">LLLLOCATION</a>
</body>
</html>
Please help me if you can!
Thanks,
Jenny
I’m using Javascript to make my pop-up windows.
I want to make multiple pop-up windows on one page, but I’m having trouble because the height and width commands in my html script make all the pop-up windows the same size.
I want each pop-up window to have its own height and width specification.
Here’s the code I’m using…
<html>
<head>
<title>pop-up test</title>
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400, height=200,left=50,top=100,resizable=0,scrollbars=yes');
return false;
}
//-->
</SCRIPT>
</head>
<body>
<a href="006_pop_win.html" onClick="return popup(this, '0006Jenny')">LLLLOCATION</a>
</body>
</html>
Please help me if you can!
Thanks,
Jenny