Default JavaScript setting

Set whether websites can run JavaScript. You can allow it for all sites ('AllowJavaScript') or block it for all sites ('BlockJavaScript').

If you don't configure this policy, all sites can run JavaScript by default, and the user can change this setting.

Policy options mapping:

* AllowJavaScript (1) = Allow all sites to run JavaScript

* BlockJavaScript (2) = Don't allow any site to run JavaScript

Use the preceding information when configuring this policy.

Supported on: Microsoft Edge version 77, Windows 7 or later

Default JavaScript setting


  1. Allow all sites to run JavaScript
    Registry HiveHKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
    Registry PathSoftware\Policies\Microsoft\Edge
    Value NameDefaultJavaScriptSetting
    Value TypeREG_DWORD
    Value1
  2. Don't allow any site to run JavaScript
    Registry HiveHKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
    Registry PathSoftware\Policies\Microsoft\Edge
    Value NameDefaultJavaScriptSetting
    Value TypeREG_DWORD
    Value2


msedge.admx

Administrative Templates (Computers)

Administrative Templates (Users)