|
-
Aug 31st, 2008, 08:12 PM
#1
Thread Starter
Hyperactive Member
[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.

I don't want my users to have to do this manually.
-
Sep 1st, 2008, 12:07 AM
#2
Junior Member
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.
-
Sep 1st, 2008, 02:55 AM
#3
Thread Starter
Hyperactive Member
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.
-
Sep 1st, 2008, 01:37 PM
#4
Junior Member
Re: [RESOLVED] Disabling Javascript in IE/Webbrowser
-
Sep 1st, 2008, 03:10 PM
#5
Hyperactive Member
Re: [RESOLVED] Disabling Javascript in IE/Webbrowser
Great! I was going to ask you about that!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|