PDA

View Full Version : Compatibility IE5.5-6 and IE7final


Theo0801
10-25-2006, 01:33 PM
Does anyone know why the following script works just fine in IE5.5 & 6 and fails in IE7final? The script is run from within a frame and used to suppress the IE confirmation message when closing the framed window

<script language="Javascript">
function silentClose()
{
top.window.opener='';
top.window.close();
}
</script>

<a href="javascript:silentClose(0);">close</a>

liorean
10-25-2006, 07:36 PM
That does no longer work in ie6 on Windows XP SP2 as well.

That you were able to suppress the confirmation dialogue at all was a bug (Possible dataloss for user, which makes it a severe bug). In ie6 on WinXP SP2 and in all versions of ie7, that bug has been corrected.

Theo0801
10-26-2006, 08:28 AM
Thanks for your response.
I assure you, this still works on IE 6 and XP sp2 (incl. all available patches, hotfixes, etc.)!

I use this little script in an offline (html) interactive demo of an application, burned on CD, simulating online browsing (sometimes different windows on top of each other) I could exclude running the demo using IE7, but I prefer not to.

May I conclude that since IE7 it's impossible to suppress the confirmation message? In other words, "no bug, no feature"?

felgall
10-26-2006, 08:36 PM
Sounds like they didn't fix the bug properly in IE6 but have now resolved it in IE7.

Basscyst
10-26-2006, 11:22 PM
Since it is being run from a cd, so long as it only runs on windows, you could run it as a .hta in which case the security restriction may be lifted.