Click to See Complete Forum and Search --> : window problem? please help


niroshan
04-02-2003, 04:18 AM
hi,

i want to dispaly a window for a perticular time period and want to close it after that time period is over.( like in the MSN massenger pop up window that comes when a new user is signing in)

please help me. i really appreciate it.

thank you,

niroshan

pdgguy
04-02-2003, 06:06 AM
<html>
<head>
<title>Open Window</title>
<script language="javascript1.2">
<!-- Hide script from older browsers
function OpenWindow()
{
// This function will open a window and close it automatically
// It is currently set for 10 seconds
// It calls the time.html page to be used for the window
// It has its width and height set to 400 and 200.
msgWindow=window.open("time.html","newWin","width=400,height=200");
msgWindow.setTimeout("close()",10000);
}
-->
</script>
</head>
<body onload="OpenWindow()">
</body>
</html>

Over to you,
Sean

niroshan
04-02-2003, 09:20 PM
hi,
thank you very much for your reply. i really appreciate it.

niroshan