JavaScript is probably already on in Chrome
Chrome enables JavaScript by default, so most sites work without you doing anything. If a website tells you JavaScript is off, or if a page looks broken with missing buttons or interactive features, you can check the setting and turn it back on in about 30 seconds.
JavaScript is code that runs inside your browser to make websites interactive — things like dropdown menus, image sliders, form validation, and live chat boxes all use it. Without JavaScript, many modern sites either don't work at all or show you a bare-bones version with almost no functionality.
Key Takeaways
- JavaScript is on by default in Chrome, so you only need to change this if a site explicitly tells you it's off or stops working.
- You can check your JavaScript setting by opening Chrome's Settings, going to Privacy and Security, then Site Settings, then JavaScript.
- If you turned JavaScript off for all sites, you can turn it back on globally in the same menu, or allow it for specific sites only.
- Some sites let you block JavaScript for just that domain without affecting other websites.
Check if JavaScript is on for a specific site
Open the website that isn't working. Look at the address bar on the left side — you'll see a small icon that looks like a circle with an "i" in it, or a lock icon. Click it.
A popup menu appears. Look for a line that says "JavaScript" — if it shows "Allowed" or has no mention of JavaScript at all, it's on for that site. If it says "Blocked", JavaScript is off for that domain only, and you can click the dropdown next to it to change it to "Allowed".
Turn JavaScript back on globally in Chrome Settings
If JavaScript is off for all sites, you'll need to go into Chrome's full settings menu. Click the three vertical dots in the top right corner of Chrome, then select Settings.
On the left sidebar, click Privacy and security. Then click Site Settings. Scroll down until you see JavaScript and click it.
You'll see a toggle at the top that says "Allowed (recommended)". If it's already in that position, JavaScript is on globally. If the toggle is off (grayed out), click it to turn JavaScript back on for all sites.
Allow JavaScript for one site while keeping it off everywhere else
If you want JavaScript on for only certain websites and off for others, you can set it up that way. Go back to the JavaScript page in Site Settings (Settings > Privacy and security > Site Settings > JavaScript).
Keep the main toggle in the "off" position. Then scroll down to the section labeled Allow and click Add. Type the website address — for example, example.com — and click Add. Now JavaScript will work on that site but stay off everywhere else.
Block JavaScript for one site while keeping it on everywhere else
If a site is behaving strangely or you don't trust it, you can turn JavaScript off for just that domain. Go to Settings > Privacy and security > Site Settings > JavaScript. Make sure the main toggle is set to "Allowed (recommended)".
Scroll down to the section labeled Block and click Add. Type the website address and click Add. JavaScript will now be off for that site only, and on for everything else.
What to do if a site still doesn't work after turning JavaScript on
If you've turned JavaScript on and a website still isn't working, the problem might be something else. Try clearing your browser cache — go to Settings > Privacy and security > Clear browsing data, make sure "Cookies and other site data" is checked, and click Clear data. Then reload the page.
If that doesn't help, the site itself might have a technical problem, or your browser extensions might be interfering. Try opening the site in Chrome's Incognito mode (press Ctrl+Shift+N on Windows or Cmd+Shift+N on Mac), which disables most extensions. If it works in Incognito, one of your extensions is likely the cause. You can then disable extensions one at a time to find which one is blocking the site.
Frequently Asked Questions
Is it safe to have JavaScript on?
Yes. JavaScript runs only on the websites you visit, and Chrome sandboxes it so malicious code can't access your files or other programs. Turning JavaScript off actually makes some sites unsafe because security features rely on it. Keep it on unless you have a specific reason to block it for a particular site.
Why would I ever want to turn JavaScript off?
Some people turn it off to block ads or tracking, though ad blockers are more effective. You might also disable it for a site you don't trust, or if a site is using JavaScript to do something annoying like auto-playing video or redirecting you repeatedly.
Does turning JavaScript off make Chrome faster?
Slightly, but usually not noticeably. Modern JavaScript is optimized and runs fast. If your browser feels slow, the problem is usually too many open tabs, a full cache, or a slow internet connection — not JavaScript itself.
Can I turn JavaScript off just for ads?
Not directly through Chrome settings. Use an ad blocker extension instead — it's more precise and won't break the sites you're trying to use. Popular options include uBlock Origin and Adblock Plus.