<script
language="javascript"
type="text/javascript">
function
popupWin()
{
text
=
"<html>\n<head>\n<title>Pop
Window</title>\n<body>\n";
text
+=
"<center>\n<br>";
text
+=
"<a href='http://yaldex.com/JSFactory_Pro.htm'
target='_blank'><h2>New JavaScripts</h2></a>";
text
+=
"</center>\n</body>\n</html>\n";
setTimeout('windowProp(text)',
3000);
}
function
windowProp(text)
{
newWindow
=
window.open('','newWin','width=300,height=100');
newWindow.document.write(text);
setTimeout('closeWin(newWindow)',
5000);
}
function
closeWin(newWindow)
{
newWindow.close();
}
window.onload=popupWin;
</script>
<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>