How do I disable JavaScript in Microsoft Edge?

The new Settings menu for Microsoft Edge does not seem to contain a way of disabling JavaScript. Going through Internet Options and disabling Active Scripting turns of JavaScript for IE11, but does not have an effect on Microsoft Edge.

Is there a way to disable JavaScript on the Microsoft Edge browser?


Solution 1:

Jan 2020 -- Edge 79 (Chromium Based)

If you have opted to download the Chromium based Edge (at the time of writing this is the only way to get the Chromium Based version),you can disable javaScript


Disable JavaScript for Browsing Purposes

You can get to the JavaScript Options by either visiting edge://settings/content/javascript, OR clicking on Settings and more (Elipses) > Site Permissions > JavaScript

From Here you can disable (block) JavaScript or enable (allow) it. You can also do this on a per site basis.

JavaScript Settings


Disable JavaScript for Development Purposes

If you are using the DevTools (Ctrl+Shift+I OR Right-Click on page and Click Inspect), you can bring up the Command Menu and start typing >disable JavaScript and select the Debugger Disable JavaScript option. You can re-enable JavaScript by following the same steps, but instead start typing >enable JavaScript

NOTE: you may or may not have to type the > (greater than symbol) depending on if it is already present.

Disable JavaScript using DevTools

Solution 2:

How do I disable JavaScript in Microsoft Edge?

Update

Microsoft changed the Group Policies for Edge since I wrote this answer. Current Windows 10 builds don't allow you to turn off JavaScript in Edge via Group Policies.


You can change this using the Group Policy settings:

"Computer Configuration: > "Administrative Templates" > "Windows Components" > "Microsoft Edge"

The same settings can also be found under:

"User Configuration: > "Administrative Templates" > "Windows Components" > "Microsoft Edge"


Edge Group Policy Settings

These Edge Group Policy Settings can be found under (User or Computer)\Administrative Template\Windows Components\Microsoft Edge\ are:

  • Allows you to run scripts, like Javascript
  • Allows you to let people use autofill on websites
  • Allows you to let people send Do Not Track headers
  • Allows you to configured password manager
  • Allows you to run pop-ups
  • Stops address bar from showing search suggestions
  • Allows you to configure SmartScreen
  • Configure how Microsoft Edge treats cookies
  • Allows you to configured the Enterprise Site list
  • Sends all intranet traffic over to Internet Explorer

Source Edge Group Policy Settings


Further reading

  • Available policies for Microsoft Edge