[RESOLVED] Disabling Javascript in IE/Webbrowser
Hello,
I need a way to programmatically disable/enable "active scripting" within internet explorer.
I've found a tool that does this. It does not require restarting of the computer or browser window. I've contacted the author however I'm pretty sure he will not want to release his code to me because he's actually selling the tool.
http://img522.imageshack.us/img522/1...blejavahp8.jpg
I don't want my users to have to do this manually.
Re: Disabling Javascript in IE/Webbrowser
Hey there.
This will involve editing the registry. I will be pretty easy if you're familiar with the Microsoft.Win32 Namespace.
To edit this setting for the current user, you'll want to look at this key:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones"
I'm sure you're familiar with IE's zones. Trusted, Intranet, etc. Under this Zones registry key, you find 5 more keys named 0-4. They each correspond to an Internet Explorer Zone.
Value Setting
------------------------------
0 My Computer
1 Local Intranet Zone
2 Trusted sites Zone
3 Internet Zone
4 Restricted Sites Zone
Under each of those keys, you'll find a bunch of keys with numeric names. Each of those correlates with a setting for that particular zone. For Active Scripting, the key is 1400. It is a DWORD. Setting it to 0 allows Active Scripting, to disable, set it to 3.
So, for the current user, to disable Active Scripting in IE, say, for the Internet Zone, you will need to change the "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1400" key's value to 3.
Re: Disabling Javascript in IE/Webbrowser
You are awesome.
I've got it working 100%.
I see that you're new to the forum.
We need more people like you.
Rep points for you.
Re: [RESOLVED] Disabling Javascript in IE/Webbrowser
Re: [RESOLVED] Disabling Javascript in IE/Webbrowser
Great! I was going to ask you about that!