Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

window closing using javascript



1:14 pm on Jun 20, 2001 (gmt 0)

Inactive Member
Account Expired


How do i prevent the confirm dialog from appearing when i close a window using the javascript method window.close()

can anyone help me please

7:25 pm on June 20, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
votes: 0

Javascript can only automatically close a window that it opened. If you're closing a window that was opened in another way, you will always see the confirm dialog box. It's a security necessity.