How to Enable JavaScript in Chrome

If a site says JavaScript is turned off, turn it back on in Chrome’s settings. On a computer, copy chrome://settings/content/javascript into the address bar, select Sites can use JavaScript, then reload the page. If the site still does not work, it may be on Chrome’s block list for JavaScript, which is covered below. This page is for turning JavaScript on; to turn it off on purpose, see how to disable JavaScript in Chrome.

Turn JavaScript on for all sites (computer)

  1. Open Chrome and select More (the three dots at the top right) > Settings.
  2. Select Privacy and security > Site settings.
  3. Select JavaScript.
  4. Select Sites can use JavaScript.

The steps are the same on Windows, Mac, Linux and a Chromebook. They follow Google’s Change site settings permissions help.

JavaScript is on, but one site is still blocked

Chrome can block JavaScript for single sites even when the default allows it. Two ways to undo that:

  • From the site: to the left of the web address, select View site information > Site settings, and change JavaScript to Allow. Changes save automatically.
  • From settings: on the JavaScript settings page, look under Not allowed to use JavaScript. Remove the site from that list. To let a site use JavaScript while the default is off, add it under Allowed to use JavaScript.

Our site settings guide explains the rest of that page.

JavaScript was turned off in DevTools

Developers can switch JavaScript off for one tab from the DevTools Command Menu. Google’s Disable JavaScript docs say it stays off in that tab only while DevTools is open. To turn it back on, close DevTools, or open the Command Menu (Ctrl + Shift + P, or Cmd + Shift + P on a Mac) and run Enable JavaScript.

The setting is greyed out (work or school Chrome)

An organization can set JavaScript for everyone with the DefaultJavaScriptSetting policy. When it is set, you cannot change it yourself; when it is not set, Chrome allows JavaScript and you can change it (policy definition). To see the policies applied to your Chrome, go to chrome://policy. On a work or school device, ask the administrator. If you think software set the policy without your say, see Chrome is managed by your organization.

On Android

  1. Open the Chrome app and tap More > Settings.
  2. Under Advanced, tap Site settings > JavaScript.
  3. Turn JavaScript on.

For one site only: on the site, tap More > Site controls > Permissions, then change JavaScript if it is listed. Reset permissions clears that site’s own settings. Steps from Google’s Android site settings help.

On iPhone and iPad

Chrome for iPhone and iPad has no JavaScript switch, so there is nothing to turn back on. Google’s site settings help for iPhone and iPad lists only three content settings: Block pop-ups, Default apps and Default site view.

Common questions

How do I check that JavaScript is on?

Open chrome://settings/content/javascript and see which option is selected, then check the two lists of sites below it.

Does resetting Chrome turn JavaScript back on?

Yes. Google’s Reset Chrome settings help says a reset returns content settings to their defaults, and JavaScript is one of the content settings in Site settings. Chrome’s default lets sites use JavaScript. Resetting also changes other settings, so try the steps above first. See how to reset Chrome.