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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop-up window trouble - html 1

Status
Not open for further replies.

JennyW

Technical User
Mar 1, 2001
323
CA
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=&quot;text/javascript&quot;>
<!--
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=&quot;006_pop_win.html&quot; onClick=&quot;return popup(this, '0006Jenny')&quot;>LLLLOCATION</a>

</body>
</html>

Please help me if you can!
Thanks,
Jenny
 
Hey Mike,
You rule! I just tried that code and it worked perfectly!
The information you have been supplying my with is invaluable!

Thank you!
Jenny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top