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.