Hi all,
I am writing a script that will automatic close the window after 5 seconds. However, before the window close, a warning message from BROWSER come out asking me if i really want to close the window. This happens in both IE and Netscape.
How can I prevent that promting message come out?
p.s. Usually this doesn't happen if the window is a pop-up. However I don't want to make it as a pop-up now.
Thanks!
<head>
<script language="javascript">
<!--
var timer = null;
//-->
</script>
</head>
<body onLoad="timer=setTimeout('parent.window.close()',5000)">
This window will close after 5 seconds
</body>
I am writing a script that will automatic close the window after 5 seconds. However, before the window close, a warning message from BROWSER come out asking me if i really want to close the window. This happens in both IE and Netscape.
How can I prevent that promting message come out?
p.s. Usually this doesn't happen if the window is a pop-up. However I don't want to make it as a pop-up now.
Thanks!
<head>
<script language="javascript">
<!--
var timer = null;
//-->
</script>
</head>
<body onLoad="timer=setTimeout('parent.window.close()',5000)">
This window will close after 5 seconds
</body>