Is it possible to enable/disable scripting in IE programmatically?

  • Thread starter Thread starter MJB
  • Start date Start date
M

MJB

I am using the embedded ActiveX IE WebBrowser component in my C#
application. I want to be able to Enable/Disable javascripting
programmatically. I was wondering if there was a way to achieve this? I
was hoping maybe there was a registery entry I could modify directly. Any
help will be appreciated.

Thanks,
Matt
 
Thanks for the info. I was hunting around for a registry entry.

--Matt

Nicholas Paldino said:
Matt,

You will want to use the WalkAll example found on MSDN. You can find
it at:

http://msdn.microsoft.com/archive/d.../samples/internet/browser/walkall/default.asp

The example is in C++, but it shows how to disable things such as
JavaScript, ActiveX controls, etc, etc, in the browser. It will require a
good deal of COM interop on your part as well, so be prepared for that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

MJB said:
I am using the embedded ActiveX IE WebBrowser component in my C#
application. I want to be able to Enable/Disable javascripting
programmatically. I was wondering if there was a way to achieve this? I
was hoping maybe there was a registery entry I could modify directly. Any
help will be appreciated.

Thanks,
Matt
 
MJB,
Thanks for the info. I was hunting around for a registry entry.

Why did you than not say that. There was no need for sending it to
programlanguage groups in my opinion.

Maybe than the guys/girls from the browser group had taken more attention.
For me this seems as well as you wanted a program solution.

Now you have an answered message, which gives mostly less result.

Just my thought,

Cor
 

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

Back
Top