Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

Q366 How can I avoid the confirm message when closing a window?

You are here: irt.org | FAQ | JavaScript | Window | Q366 [ previous next ]

The confirm message appears when the window you are closing has more than one location in the history object. To avoid the confirm message you'll need to avoid loading one than one document in the window you wish to close - perhaps by using the replace() method.

©2018 Martin Webb