TheShibby
09-02-2003, 12:44 PM
Hey I need a tag that will make a window close after one minute.
Anyone know one?
Anyone know one?
|
Click to See Complete Forum and Search --> : window close TheShibby 09-02-2003, 12:44 PM Hey I need a tag that will make a window close after one minute. Anyone know one? pyro 09-02-2003, 12:45 PM Try something like this: Untested <script type="text/javascript"> function closeWin() { window.close(); } setTimeout("closeWin()",60000); </script> Charles 09-02-2003, 02:34 PM Originally posted by pyro Try something like this: Untested <script type="text/javascript"> function closeWin() { window.close(); } setTimeout("closeWin()",60000); </script> Would be better written as: <script type="text/javascript"> setTimeout("window.close()",60000); </script> pyro 09-02-2003, 03:38 PM Correct... TheShibby 09-02-2003, 06:50 PM thanks ALOT that works perfect TheShibby 09-02-2003, 07:07 PM is there any way for it to close without asking? Charles 09-02-2003, 08:24 PM 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. TheShibby 09-02-2003, 09:24 PM do i have to ethical? webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |