JavaScript is probably already on — here's how to check

Chrome turns JavaScript on by default, so most websites work without you doing anything. But if you've turned it off before, or if a website suddenly stopped working and you suspect JavaScript is the problem, you can check the setting in about 30 seconds.

Open Chrome and look at the three vertical dots in the top right corner. Click them, then click Settings. On the left side, click Privacy and security, then click Site settings. Scroll down until you see JavaScript and click it. If the toggle next to "Allowed (recommended)" is turned on (it will be blue), JavaScript is already enabled for all websites.

If the toggle is off (it will be gray), that's why some websites aren't working. Move to the next section to turn it back on.

Key Takeaways

  • JavaScript is turned on by default in Chrome, so you only need to change this setting if you deliberately turned it off or if a website tells you to.
  • The JavaScript setting is in Settings > Privacy and security > Site settings > JavaScript.
  • You can turn JavaScript on for all websites at once, or block it on specific sites you don't trust.
  • Turning JavaScript back on usually fixes websites that show blank pages, won't load content, or display error messages.

How to turn JavaScript on for all websites

If you found the JavaScript toggle turned off, click it to turn it back on. The toggle will turn blue, and the text will change to "Allowed (recommended)". Close the Settings tab — the change takes effect immediately.

Reload the website that wasn't working. Most of the time, it will load normally now. If it still doesn't work, the problem is something else — try clearing your browser cache, or try opening the website in a different browser to see if the issue follows you.

How to turn JavaScript off for just one website

If you want JavaScript on for most sites but off for one specific site you don't trust, you can block it on that site alone. Go to the website you want to block, then click the lock icon or information icon to the left of the web address at the top of the page.

Click Site settings. Find the JavaScript row and click the dropdown that says "Allow". Change it to Block. Close the popup — the change takes effect immediately, and that website will no longer run JavaScript when you visit it.

If you change your mind later, go back to that same popup and change the dropdown back to "Allow".

Why websites need JavaScript to work

JavaScript is a programming language that runs inside your browser. It powers interactive features like dropdown menus, search suggestions that appear as you type, buttons that do something when you click them, and videos that play on the page. Without JavaScript, many modern websites show you a blank page or only display text with no way to interact with them.

Turning JavaScript off is a security choice some people make because it can theoretically reduce tracking, but it breaks most websites. Unless you have a specific reason to turn it off, leaving it on is the right choice.

What to do if a website says JavaScript is disabled

Some websites display a message like "Please enable JavaScript to view this page" even when JavaScript is already turned on in your settings. This usually means the website itself has a problem, not your browser.

Try these steps in order: First, reload the page by pressing Ctrl+R (or Cmd+R on Mac). If that doesn't work, clear your browser cache by going to Settings > Privacy and security > Clear browsing data, making sure "Cookies and other site data" is checked, then click Clear data. Reload the page again. If the message still appears, the website may be broken for everyone, and you should try again in a few hours or contact the website's support team.

How to check JavaScript is working on a specific page

If you want to verify that JavaScript is actually running on a page, you can open Chrome's developer tools. Press Ctrl+Shift+J (or Cmd+Option+J on Mac). A panel will open at the bottom of your screen showing the Console. If you see error messages in red, JavaScript is running but the page has a problem. If the console is empty or shows only normal messages, JavaScript is working.

You don't need to do anything with this information — it's just a way to confirm JavaScript is on. Close the developer tools by pressing Ctrl+Shift+J again.

Frequently Asked Questions

Will turning JavaScript back on hurt my security?

JavaScript is safe to have on. It runs only on websites you visit, and it can't access your files or passwords. If you're worried about a specific website, you can block JavaScript on just that site instead of turning it off everywhere.

Why would I ever turn JavaScript off?

Some people turn it off to reduce tracking or to avoid running code from websites they don't trust. But this breaks most modern websites. If you're concerned about privacy, using a VPN or blocking ads is more effective than disabling JavaScript.

Does JavaScript work the same way in other browsers?

Yes. Firefox, Safari, and Edge all run JavaScript by default and have similar settings to turn it on or off. The steps are slightly different in each browser, but the concept is the same.

What if JavaScript is on but a website still won't load?

The problem is likely something else. Try clearing your browser cache, disabling browser extensions, or opening the website in an incognito window. If it works in incognito mode, one of your extensions is interfering.