Once your page loads, after the number of seconds you define, a popup window will open.
<!-- TWO STEPS TO INSTALL POPUP PAGE:
1. Copy the coding into the HEAD of your HTML ****
2. Add the onLoad event handler into the BODY tag -->
<head>
<script type="text/javascript" language="JavaScript">
<!-- Begin
function popupPage() {
var page = "http://www.8sky.info/popup.html";
windowprops = "height=500,width=500,location=no,"
+ "scrollbars=no,menubars=no,toolbars=no,resizable=yes";
window.open(page, "Popup", windowprops);
}
// End -->
</script>
</head>
<body onload="setTimeout('popupPage()', 5000);">
</body>
Popup Page
-
- Posts: 504
- Joined: Sat May 07, 2005 8:03 am
- Contact:
-
- Posts: 504
- Joined: Sat May 07, 2005 8:03 am
- Contact:
-
- Posts: 87
- Joined: Wed Mar 22, 2006 4:54 pm
kaos_frack wrote:also you can determine if your popup window has been blocked or not like this:Code: Select all
var win1 = window.open(][/quote] This is sometime usefull to know, is user blocking popups or not, when creating sophisticated web systems were sometimes you need to open popup on <Body onLoad...> method, so you can tell user that he would allow popups for my site. But i dont use popups very often, i only use them for previewing how form's data will look like on page. But i think sometimes it's valuable