tsbarnes
01-20-2003, 05:33 PM
I was wondering if there was a way to open up a page and after let say 15 seconds the window would automatically close?
Any help will be greatly appreciated,
tsbarnes
Any help will be greatly appreciated,
tsbarnes
|
||||
Close.Window()tsbarnes 01-20-2003, 05:33 PM I was wondering if there was a way to open up a page and after let say 15 seconds the window would automatically close? Any help will be greatly appreciated, tsbarnes cg9com 01-20-2003, 05:44 PM <script type="text/javascript"> setTimeout('self.close()',15000); </script> however i think you will get a confirmation "are you sure you want to close window?" message Stoffel 01-20-2003, 06:17 PM Yep, you're right Is there a way to bypass that message? Borgtex 01-20-2003, 07:35 PM Originally posted by Stoffel Yep, you're right Is there a way to bypass that message? no Cathy McK 01-20-2003, 11:38 PM I believe I have read on this website previously, that if you open the new window as a pop up rather than a new window, you do not get that message when the pop up closes. I have seen here some free scripts that show you how to do exactly what you are asking - you simply nominate the amount of time to elapse before the pop-up window closes automatically. You can specify the size of the pop up window, and what attributes (if any) you want shown in the window. Graeme Hackston 01-20-2003, 11:59 PM Actually, with a slight modification of zoobie's script from here: http://www.codingforums.com/showthread.php?s=&threadid=11890 it is possible: <html> <head> <title>Self Close</title> <script> setTimeout("bye()",15000) function bye() { self.opener = this; self.close() } </script> </head> <body> </body> </html> Borgtex 01-21-2003, 04:22 AM yeah, it works! I think that I will not be so categorical in the future :o kwhubby 01-21-2003, 05:55 AM hey borgtex there is a way to close a window without a message, it uses the active X controls, and I forget who, but somebody else in this forum knows how, ill reasearch this, and be back with you in short time tsbarnes 01-21-2003, 07:33 PM I implemented the following code: <script type="text/javascript"> setTimeout('self.close()',15000); </script> But as someone stated before (I think), that you do not get the confirmation if you use it conjuction with a popup window. That is currently how I am using and I do not get the Confirmation. FYI Thanks, tsbarnes |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum