Re: Blocking showModelessDialog() call

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Oct 30, 10:03 pm, Dave Brown <key8...@xxxxxxxxx> wrote:
I've read a bunch of posts and the MSFT KB article which say you can't
catch the javascript call to showModelessDialog() in order to prevent
the dialog from appearing.

However, IE7 seems to be able to block popups from websites which use
showModelessDialog() without the user clicking on anything.

Does anyone know how they are doing this? Are they installing a hook
function and catching the dialog as it's created? The interesting
thing is that IE7 properly allows showModelessDialog to work if the
user clicks on a link which generates it.

Try injecting javascript to the effect of..

window.showModelessDialog = null;

Here is a list of techniques that I use to stop the popups and I get
most of em.

http://www.nathanm.com/iwebbrowser2-stopping-and-disabling-popups/

.



Relevant Pages

  • Re: Blocking showModelessDialog() call
    ... IE7 seems to be able to block popups from websites which use ... showModelessDialog() without the user clicking on anything. ... I believe NewWindow3 event, new in IE7, does report such dialogs. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Blocking showModelessDialog() call
    ... catch the javascript call to showModelessDialogin order to prevent ... showModelessDialog() without the user clicking on anything. ... I've even just tried adding a windows hook proc with ... SetWindowsHookExto trap creation of new windows and look for the ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Blocking showModelessDialog() call
    ... catch the javascript call to showModelessDialogin order to prevent ... showModelessDialog() without the user clicking on anything. ... I believe NewWindow3 event, new in IE7, does report such dialogs. ... -- RFC 1925 ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Blocking showModelessDialog() call
    ... I've read a bunch of posts and the MSFT KB article which say you can't ... catch the javascript call to showModelessDialogin order to prevent ... showModelessDialog() without the user clicking on anything. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)