Q. How do you make a new automatically launched window that goes to a URL if the user exits from the site?

A. You can achieve this effect by using the onUnload event, although we encourage you to use this script sparingly.

<SCRIPT LANGUAGE = "JavaScript">
<!-- // 
function openit(sURL){newwindow=open(sURL,"newwin","width=300, height=300");
}
//-->
</script>
</head>
<body onUnload="javascript:openit ('smallwin.html')">
body text goes here
</body>

You can also change the height and width settings, or add or remove other windows settings by adding the following functions:
function openit(sURL){newwindow=open(sURL,"newwin","scrollbars=no,toolbar=no,directories=no,menubar=no,resizabe=no,status=no,width=300,height=300");
}

 
My3C's
perrychicker
It's easy... it's a PSACAKE!
Back | Tell A Friend | Search this Site
1998 - 2014 psacake.com
Version 3.23

Send me One Million FREE Guaranteed Visitors