Jump to Real's How-to Main page

Close a window after a timeout

This will open a window using the welcome.html file. The window will close itself after 5 seconds.
welcome = window.open('welcome.html');
setTimeout('welcome.close()',5000)

If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]