[removed]
function popupWin() {
text = «<html>\n<head>\n<title>Pop Window</title>\n<body>\n»;
text += «<center>\n
«;
text += «
New JavaScripts
»;
text += «</center>\n</body>\n</html>\n»;
setTimeout(‘windowProp(text)’, 3000); // delay 3 seconds before opening
}
function windowProp(text) {
newWindow = window.open(’‘,‘newWin’,‘width=300,height=100’);
newWindow.[removed](text);
setTimeout(‘closeWin(newWindow)’, 5000); // delay 5 seconds before closing
}
function closeWin(newWindow) {
newWindow.close(); // close small window and depart
}
[removed]
<BODY>
<center>
This demo will open a small popup window 3 seconds after the page is loaded and close the window after it has been open for 5 seconds.
</center>
<center>
<font face=«arial, helvetica» size»-2»>Free JavaScripts provided
by The JavaScript Source</font>
</center>