window close

liunx

Guest
Hey I need a tag that will make a window close after one minute.<br />
Anyone know one?<!--content-->Try something like this:<br />
<br />
Untested<br />
<script type="text/javascript"><br />
function closeWin() {<br />
window.close();<br />
}<br />
setTimeout("closeWin()",60000);<br />
</script><!--content-->Originally posted by pyro <br />
Try something like this:<br />
<br />
Untested<br />
<script type="text/javascript"><br />
function closeWin() {<br />
window.close();<br />
}<br />
setTimeout("closeWin()",60000);<br />
</script> Would be better written as:<br />
<br />
<script type="text/javascript"><br />
setTimeout("window.close()",60000);<br />
</script><!--content-->Correct...<!--content-->thanks ALOT that works perfect<!--content-->is there any way for it to close without asking?<!--content-->That message is a security feature. MSIE has a flaw that you can use to get around that security feature but doing so would be unethical.<!--content-->do i have to ethical?<!--content-->
 
Back
Top