Results 1 to 5 of 5

Thread: [RESOLVED] Disabling Javascript in IE/Webbrowser

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2007
    Posts
    360

    Resolved [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.

  2. #2
    Junior Member Dr. Octagonapus's Avatar
    Join Date
    Aug 2008
    Location
    Hell, Pennsylvania
    Posts
    22

    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2007
    Posts
    360

    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.

  4. #4
    Junior Member Dr. Octagonapus's Avatar
    Join Date
    Aug 2008
    Location
    Hell, Pennsylvania
    Posts
    22

    Re: [RESOLVED] Disabling Javascript in IE/Webbrowser


  5. #5
    Hyperactive Member
    Join Date
    Jan 2006
    Posts
    395

    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
  •  



Click Here to Expand Forum to Full Width