Click to See Complete Forum and Search --> : Close the IE window through javascript


rmalur
10-03-2004, 03:22 AM
I am trying to close the IE window through javascript using self.close().
But this method gives a popup warning saying 'The webpage you are viewing is trying to close the window. Do you want to close the window?'

This has to be done on clicking a link or a button only!!!!!!!

Is there any way to suppress this warning popup and close the window directly.
:)

AdamGundry
10-03-2004, 03:29 AM
Certain version of IE had a bug that allowed this, but I believe XP SP2 fixes it (or at least it should). Firefox doesn't have the bug, or even display a dialog box - it just ignores the instruction. You can only reliably close windows if you opened then yourself with a JavaScript window.open() call.

Adam

coothead
10-03-2004, 06:02 AM
Hi there AdamGundry,

I have not installed SP2 as yet,
so I don't know if it has fixed this bug
but I do know that it still closes the Opera 7.54 window.

coothead