Site hosted by Angelfire.com: Build your free website today!
This window opens in three (3) seconds
& will close automatically after ten (10) seconds.

Study the code.
") } self.setTimeout('winOpen()', 3000) function winClose() { myWindow.close() } self.setTimeout('winClose()', 10000) //-->

<.SCRIPT language="JavaScript">
<.!-- 
function winOpen(){
myWindow.document.write("<.html><.body bgcolor=mistyrose><.font size=2 face=arial,helvetica color=maroon><.b>This window opens in three (3) seconds<.br> & will close automatically after ten (10) seconds.<.br><.br> Study the code.<./b><./font><./body><./html>")
}
self.setTimeout('winOpen()', 3000)
function winClose() {
     myWindow.close()
}
self.setTimeout('winClose()', 10000) 
//-->
<./SCRIPT>
<.style type="text/css"> 
a.button:link  
{ 
 font-size:14px; 
 font-weight:bold; 
 text-decoration:none; 
 border-style:outset; 
 border-color:red; 
 border-width:5px; 
 background-color:#FFFFCE; 
 width:125px;  
 color:navy; 
} 
a.button:visited  
{ 
 font-size:14px; 
 font-weight:bold; 
 text-decoration:none; 
 border-style:outset; 
 border-color:red; 
 border-width:5px; 
 background-color:#FFFFCE; 
 width:125px;  
 color:navy; 
} 
a.button:active  
{ 
 font-size:14px; 
 font-weight:bold; 
 text-decoration:none; 
 border-style:inset; 
 border-color:red; 
 border-width:5px; 
 background-color:#FFFFCE; 
 width:125px; 
 color:maroon; 
} 
a.button:hover  
{ 
 font-size:14px; 
 font-weight:bold; 
 text-decoration:none; 
 border-style:inset; 
 border-color:red; 
 border-width:5px; 
 background-color:#FFFFCE; 
 width:125px;  
 color:maroon; 
} 
<./style>

SitePoint

http://members.tripod.com/~gopalfamily/EurekaMathFun.html
Google: setTimeout
http://www.devguru.com/Technologies/ecmascript/quickref/win_settimeout.html