You can turn JavaScript off in Chrome for every site, for one site, or, if you are testing a page, for one tab. On a computer, the quickest way is to copy chrome://settings/content/javascript into the address bar and select Don’t allow sites to use JavaScript. Google describes JavaScript as what sites usually use to display interactive features, like video games or web forms, so expect many sites to stop working properly. If a site is broken because JavaScript is already off, see how to enable JavaScript in Chrome instead.
Choose how much to turn off
| You want to | Use |
|---|---|
| Block JavaScript everywhere | The default setting (below) |
| Block it on one site and keep it everywhere else | A site exception |
| Allow it on a few sites and block it everywhere else | The default setting plus exceptions |
| Test how your own page works without it | DevTools, one tab |
Turn JavaScript off for all sites (computer)
- Open Chrome and select More (the three dots at the top right) > Settings.
- Select Privacy and security > Site settings.
- Select JavaScript.
- Select Don’t allow sites to use JavaScript.
To keep JavaScript for sites you trust, add them under Allowed to use JavaScript on the same page. These steps follow Google’s Change site settings permissions help.
Turn JavaScript off for one site
- Go to the site.
- To the left of the web address, select View site information > Site settings.
- Next to JavaScript, choose Block. The change saves automatically.
You can also add the site under Not allowed to use JavaScript on the JavaScript settings page.
Turn JavaScript off in one tab with DevTools (for testing)
From Google’s Disable JavaScript docs:
- Open DevTools: F12 or Ctrl + Shift + I on Windows and Linux, Cmd + Option + I on a Mac.
- Open the Command Menu: Ctrl + Shift + P (Cmd + Shift + P on a Mac).
- Start typing
javascript, select Disable JavaScript and press Enter. - Reload the page to see how it loads without JavaScript.
JavaScript stays off in that tab only while DevTools is open. To turn it back on, run Enable JavaScript from the Command Menu or close DevTools. More on DevTools in our DevTools basics guide.
On Android
- Open the Chrome app and tap More > Settings.
- Under Advanced, tap Site settings > JavaScript.
- Turn JavaScript off.
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 setting to turn JavaScript off. Google’s site settings help for iPhone and iPad lists only three content settings: Block pop-ups, Default apps and Default site view.
Turn JavaScript back on
Go back to the same setting and select Sites can use JavaScript, or set the site back to Allow. Chrome’s default lets sites use JavaScript. Step by step help is on our enable JavaScript page.