How to Disable JavaScript in Chrome

Follow these steps to disable JavaScript in the Google Chrome browser:

How to Enable or Disable JavaScript Only on Specific Pages

Blocking JavaScript can disable functionality on websites, and may make some websites unusable. Blocking it in Chrome isn’t an all-or-nothing setting, though. You can choose to block specific sites, or, if you block all JavaScript, set exceptions for specific websites you define. You can find these settings in the JavaScript section of the Chrome settings. Beneath the switch to disable all JavaScript are two sections, Block and Allow.

In the Block section, select Add to specify the URL for the page or site you want to disable JavaScript. Use the Block section when the JavaScript switch is set to enabled (see above).In the Allow section, select Add to specify the URL of a page or site on which you want to allow JavaScript to run. Use this when the toggle switch is off to disable all JavaScript.

Why Disable JavaScript?

There are several reasons why you may want to disable JavaScript code from running in a browser. The biggest reason is for security. JavaScript can present a security risk because it’s code a computer executes. This process can be compromised and used as a means to infect a computer. You may also want to disable JavaScript because it’s malfunctioning on a site and causing problems with the browser. Malfunctioning JavaScript could prevent a page from loading or cause the browser to crash. Disabling JavaScript may allow you to view content on a page, only without the added functionality it usually provides. Finally, if you administer a website, you may need to disable JavaScript to troubleshoot issues. For example, if you use a content management tool like WordPress, JavaScript code or a plug-in using JavaScript might require you to disable it to identify and fix the problem.