How to Disable JavaScript in Google Chrome

The popular programming language can be a security risk

JavaScript is a popular text-based programming language commonly used on the internet. Most websites need JavaScript for all their bells and whistles to work. This includes advertisements. If you want to block ads on the pages you visit, or if you're having technical issues in Chrome, you may want to disable JavaScript. You can block it completely or disable it on a site-by-site basis. We'll show you how.

Lifewire also has guides on how to disable JavaScript in Firefox, Safari, and Internet Explorer.

Why Disable JavaScript?

There are 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's code 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's 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. Disabling JavaScript may allow you to still view content on a page, just without the added functionality it usually provides.

Finally, 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 or a plug-in using JavaScript might require that you disable it in order to identify and fix the problem.

How to Disable JavaScript in Chrome

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

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

  2. Select Settings. Chrome's settings should now display in a new tab or window, depending on your configuration.

    You can find Chrome's settings under the menu in the top-right.
  3. Under the Privacy and security section, select Site Settings.

    You can find Site Settings under the Privacy and Security tab in Chrome
  4. Under Content, select JavaScript.

    The Content section of Chrome's settings includes JavaScript options
  5. Toggle the slider off to disable JavaScript in Chrome.

    Disable JavaScript in Chrome by toggling the slider off

How to Enable or Disable JavaScript Only on Specific Pages

Blocking JavaScript can disable a lot of functionality on websites, and may even make some of them 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.

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

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, click Add to specify the URL for the page or site you want JavaScript disabled on. Use the Block section when you have the JavaScript switch set to enabled (see above).

In the Allow section, click Add to specify the URL of a page or site on which you want to allow JavaScript to run. Use this when you have the toggle flipped off to disable all JavaScript.

If you're 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.