mikeh
04-09-2003, 03:29 AM
How can I get a new full sized window to open automatically once a page has loaded?
I can do it from a link, but not automatically.
I can do it from a link, but not automatically.
|
Click to See Complete Forum and Search --> : New window upon page loading mikeh 04-09-2003, 03:29 AM How can I get a new full sized window to open automatically once a page has loaded? I can do it from a link, but not automatically. div1 04-09-2003, 03:52 AM If i understand you right- in the body tag add an onload event - <body onLoad="DoMyNewWindowStuff()"> and then have a function to action the window the way you want- <script language="JavaScript" type="text/javascript"> function DoMyNewWindowStuff() { MyWindow=window.open('http://forums.webdeveloper.com/','MyWindow','toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizabl e=yes,left=1,top=1, width=1000,height=1000'); } //change the width and height as desired for the window size you want </script> </body> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |