No replies
skitzofrenik
Offline
newbie
Last seen: 17 years 5 weeks ago
Joined: 2003-12-23
Posts: 1
Points: 0

okay so i'm trying to get my site to have multiple popups when it loads (don't ask, i felt like making a ugly site... long story)

so what i have is

<script language="javascript" type="text/javascript">
//<!--
function pop1()
{ window.open ("one.htm", "popup1", "width=350, height=350, location=0, directories=0, menubar=0, resizable=0, scrollbars=0, status=0, toolbar=0, top=30, left=20") }

function pop2()
{ window.open ("two.htm", "popup2", "width=300, height=300, location=0, directories=0, menubar=0, resizable=0, scrollbars=0, status=0, toolbar=0, top=50, left=50") }
-->
</script>

and then in the <body> tag

<body onload="pop1();pop2()">

but i cant figure out why its not working. it pops up the first page, and then opens the second in the same window. can anyone tell me what i need to do to get them each opening in their own window? my head hurts and i'm about to start breaking stuff
Sad

Tags: