<FAQENTRY> window.open methods causes my script crash in Internet Explorer



I'm using window.open method in my script to open poup window. Recently
Internet Explorer users reported that the script crashes on their
machine with different runtime errors.

See the bug:
<http://support.microsoft.com/default.aspx?scid=kb;en-us;888021>

The statement like
myPopup = window.open(args);
gives you runtime error and halts the script execution *if a 3rd party
popup blocker is installed and active*. The runtime error can be one of
following (average % from 100 runs):

1. "The callee (server [not server application]) is not available and
disappeared;
all connections are invalid. The call did not execute." - 80%

2. "The RPC server is unavailable" - 15%

3. "Unspecified error" - 5%

On the first attempt on the fresh page the first error always comes
first. 2nd and 3rd errors are appearing sporadically if you tortue the
same page long enough.

Only try-catch block allows you to prevent the script execution abort:

try {
myPopup = window.open(args);
}
catch (e) {
// popups blocked by a 3rd party
}

The Microsoft position (as I got it) is: "Do not use 3rd party popup
blockers". With 82% market share and a global epidemie of anti-popups
from everywhere it means that within a year or less pupup usage will be
limited to the intranet area where you can admin the enviroment.

window.showModalDialog method seems not affected by popup blockers and
it doesn't lead to script errors.

As I'm finding this issue high-crucial, I copy this message to the new
post as FAQENTRY.

.



Relevant Pages

  • Re: Runtime error (Do you wish to debug?) and www.
    ... script error.") worked for me to fix the following runtime error I was ... A Runtime Error has occurred. ... Program: iexplore.exe: Script program ... This will restore the Windows defaults for a whole lot of Search related ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Runtime error - Error: MenuObj is undefined
    ... You don't mention the version of Windows, but, try the following and see if ... "A runtime error has occurred. ... Uncheck the box to "Display a notification about every script error." ... Does anyone know which CAB file needs to be reinstalled or can someone ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Rin time error with Internet Explorer
    ... next to "Disable script debugging in Internet Explorer" ... | Choose the following program types you wnat to debug: ...
    (microsoft.public.windowsxp.general)
  • Re: runtime error
    ... > I keep getting a runtime error and it asks me if I'd like ... Uncheck the box to Display a notification about every script error. ... Sometimes there's a corrupt file in the cache and one must go to Tools | ... Dealing with Hijackware ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Runtime errors
    ... With Internet Explorer open go to Tools>Internet Options>Advanced and enable ... 'Disable script debugging'. ... MS-MVP Windows - Shell/User ... | A runtime error has occorred. ...
    (microsoft.public.windowsxp.help_and_support)