Blocking javascript popup from WebBrowser control.

  • Thread starter Thread starter Hadi
  • Start date Start date
H

Hadi

Hello,

Is it possible for me to stop JavaScript popup from a WebBrowser control?

Thanks,

Hadi
 
Hadi,

The WebBrower control comes from "shdocvw.dll" which is part of Internet
Explorer and therefore uses the same settings as IE. If the IE settings are
configured to block JavaScript, then the WebBrowser control will also block
JavaScript.

However, as users can change the JavaScript settings within IE themselves,
you cannot guarantee that pages displayed in the WebBrowser control of your
application will not process JavaScript on a web page.

Gary
 
Back
Top