Click to See Complete Forum and Search --> : pop up windows


Lancer Sykera
01-05-2003, 04:14 PM
Oi, here we go, I can't seem to find a script for this... I want the user to load my page, and when the page loads, a pop up window appears which loads another page..... But the script ran away...

ShrineDesigns
01-05-2003, 05:23 PM
this will open a window once the page has began loading

<body onLoad="window.open('URL','winName','winFeatures')">

</body>

Lancer Sykera
01-05-2003, 06:09 PM
No worky... possibly an example I could see? Maybe, on an actual page even?

ShrineDesigns
01-05-2003, 06:59 PM
ok

URL - a url relative or absolute example: (http://www.mysite.com)

winName - secify a name for the window for targeting purposes

winFeatures - you can set the width; height; position; and which bars are displayed (like statusbar; scrollbars; addressbar; etc.)

example:
window.open('http;//www.mysite.com','myWin','width=600 height=400 scrollbars=yes top=0 left=100 statusbar=no addressbar=no')