Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

How to close a window?



3:46 pm on Jul 30, 2001 (gmt 0)

10+ Year Member

How do I close a window?
Like , let's say we have a pop-up window that has a sign-up for a mailing list. The person ads there e-mail to it and once they click submit I want the window to close. Or I want it to say thanks and have a delayed process, then after let's say 5 seconds, close.

Thanks advance


3:48 pm on Jul 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

using JavaScript the window.close() method can close a window. However, if the window was not initially opened by JavaScript then the browser will warn the user and prompt them to confirm the window closure.


6:40 pm on Jul 30, 2001 (gmt 0)

10+ Year Member

Got it,

Thanks ;)


Featured Threads

Hot Threads This Week

Hot Threads This Month