Drago_Drake
06-17-2003, 08:43 PM
is there any way for me to make a popup window popup as soon as the page loads ? without them having to click sumin ?
|
View Full Version : Auto PopUp ? Drago_Drake 06-17-2003, 08:43 PM is there any way for me to make a popup window popup as soon as the page loads ? without them having to click sumin ? pb&j 06-17-2003, 08:49 PM try putting this into the HEAD area of your coding... <script type="text/javascript"> <!-- MyExample=window.open("page1.html","directories=yes,location=yes,menubar=yes, resizable=yes,status=yes,toolbar=yes,scrollbars=ye s,width=400,height=300"); // --> </script> (that line should be on all one line) Drago_Drake 06-17-2003, 10:48 PM no it didnt work :( JavaQueen03 06-18-2003, 01:54 AM Try this is should work.: <html> <head> <script language="JavaScript"> <!-- function openwindow() { window.open("yourpagename.html", " the_name_of_your_window", directories=yes,location= yes,menubar=yes, resizable=yes,status=yes, toolbar=yes,scrollbars=ye s,width=400,height=300"); } --> </script> </head> <body onLoad="openwindow()"> Your body text. </body> </html> pb&j 06-18-2003, 04:03 AM the last post (above this one) is correct except they are missing a double quote... window.open("yourpagename.html", "the_name_of_your_window","directories=yes,location=yes,menubar=yes,resizable =yes,status=yes,toolbar=yes,scrollbars=yes,width=4 00,height=300"); and again, that is all on one line. designhazard 06-19-2003, 12:39 PM you can try this: <script> window.open("filename.html","frame target","directories=yes,location=yes,menubar=yes,resizable =yes,status=yes,toolbar=yes,scrollbars=yes,width=4 00,height=300"); </script> put that code between the <head> and the </head> tag. |