How to Disable JavaScript in Google Chrome

Follow these steps to disable JavaScript in Google's Chrome browser:

  1. Open the Chrome browser and click on Chrome's main menu button, which appears as three vertically-aligned dots located in the upper right-hand corner of the browser window.

  2. From the menu, select Settings. Chrome's Settings should now be displayed in a new tab or window, depending on your configuration.

  3. Scroll to the bottom of the Settings page and click Advanced (in some versions of Chrome this may read Show advanced settings). The settings page will expand to display more options.

  4. Under the Privacy and security section, and click Content settings.

  5. Click on JavaScript

  6. Click the switch located next to the phrase Allowed (recommended); the switch will change from blue to a gray, and the phrase will change to Blocked.

    • If you are running an older version of Chrome, the option may be a radio button labeled Do not allow any site to run JavaScript. Click the radio button, and then click Done to return to the previous screen and continue with your browsing session.
  7. That's it!

Manage JavaScript Blocking Only on Specific Pages

Blocking JavaScript can disable a lot of functionality on websites, and may even make some sites unusable. Blocking JavaScript in Chrome isn't an all-or-nothing setting, however; you can choose to block specific sites, or, if you block all JavaScript, set exceptions for specific websites you define.

A hand with a stickynote that says STOP coming out of a laptop display
Dimitri Otis / Getty Images

You will find these settings in the JavaScript section of the Chrome settings as well. Beneath the switch to disable all JavaScript are two sections, Block and Allow.

In the Block section, click Add to the right to specify the URL for the page or site on which you want JavaScript blocked. Use the Block section when you have the JavaScript switch set to enabled (see above).

In the Allow section, click Add to the right to specify the URL of a page or site on which you want to allow JavaScript to run. Use the Allow section when you have the switch above set to disable all JavaScript.

If you are running an older version of Chrome: the JavaScript section has a Manage exceptions button, which allows you to override the radio button settings for specific user-defined domains or individual pages.

Why Disable JavaScript?

There can be a number of different reasons why you may want to temporarily disable JavaScript code from running in your browser. The biggest reason is for security. JavaScript can present a security risk because it is code that your computer executes — and this process can be compromised and used as a means to infect your computer.

You may also want to disable JavaScript because it is malfunctioning on a site and causing problems with your browser. Malfunctioning JavaScript could prevent a page from loading, or even cause your browser to crash. Preventing JavaScript from running may allow you to still view content on a page, just without the added functionality JavaScript would usually provide.

If you have your own website, you may need to disable JavaScript to troubleshoot issues. For example, if you're using a content management tool like WordPress, JavaScript code you add or even a plug-in with JavaScript might require that you disable JavaScript in order to identify and fix the problem.