Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: incrediBILL

Message Too Old, No Replies

How to close a window?

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

Preferred Member

10+ Year Member

joined:May 3, 2001
posts:365
votes: 0


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 July 30, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 10, 2001
posts:793
votes: 0


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 July 30, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:May 3, 2001
posts:365
votes: 0


Got it,

Thanks ;)