I'm using window.open to open a page in a new popup window. I'd like the window to automatically close after 30 seconds. I presume I need to use the setTimeout function but not sure.
Any ideas?
I'm using window.open to open a page in a new popup window. I'd like the window to automatically close after 30 seconds. I presume I need to use the setTimeout function but not sure.
Any ideas?
Code:var popup = window.open("popup.htm"); setTimeout("popup.close()", 30000);
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Great Twey!
I stared at this for ages and never got close to such a simple solution. Talk about not seeing the wood for the trees....
Thanks.
Heh, no problem. Sometimes it just needs a different viewpoint.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks