PDA

View Full Version : Closing a window without confirmation


orbitalsatan
09-11-2002, 07:59 AM
Hi..

This is probably a simple one for most.....

I am trying to close a window with a window.close(); command
and i keep getting the " Windows is trying to close the window"
confirmation message.....is there any way i can force it to close
without confirmation??

Mr J
09-11-2002, 08:32 AM
Simply no


It is something to do with the history, if the window opens and there is nothing in the history then you will get the confirmation alert

glenngv
09-11-2002, 09:32 AM
try this but be sure of its consequences. users may be annoyed by it.

window.opener = top;
window.close()

orbitalsatan
09-11-2002, 09:54 AM
thanks a million glenngv....worked like a charm...

Mr J
09-11-2002, 05:10 PM
Well I never...........I'll be dumb foundered and flabber ghastered all at once................you learn something new everyday

:thumbsup: :thumbsup: :thumbsup:


Good on yer glenngv