Blocking javascript popup from WebBrowser control.

H

Hadi

Hello,

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

Thanks,

Hadi
 
G

Gary Milton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top