HTML Forums - Free Webmaster Forums and Help Forums
>
WEBSITE DEVELOPMENT
>
Client Side Scripting
> How to close a pop-up php window after a couple seconds?
PDA
View Full Version :
How to close a pop-up php window after a couple seconds?
vhbram
06-07-2005, 02:37 PM
When I open a pop-up with a php-script in it, it must close after a couple seconds, how must I do that,
Thanks in advance
Crouse
06-07-2005, 05:57 PM
In your popup page.....
put in the code
<BODY onLoad="setTimeout(window.close, 6000)">
the 6000 represents 6000 milliseconds...or 6 seconds. Change that to whatever your needs are.
Hope that helps.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.