JavaScript is turned off by default in Chrome, but you can enable it in Settings in about two minutes
Chrome does not actually disable JavaScript by default — it comes with JavaScript turned on. However, if you have disabled it yourself or suspect it is off, you can turn it back on through Chrome Settings. The process is the same whether you are on Windows, Mac, or Linux.
You will know JavaScript is off if websites look broken: buttons do not work, forms will not submit, or interactive elements do not respond when you click them. Turning it back on fixes these problems immediately.
Key Takeaways
- Open Chrome Settings by clicking the three-dot menu in the top right corner and selecting Settings.
- Navigate to Privacy and Security on the left sidebar, then click Site Settings.
- Scroll down to find JavaScript and click it to open the toggle.
- Switch the toggle to "Allowed" so websites can run JavaScript code.
- Close Settings and refresh any broken websites to see the change take effect.
Step-by-step: Enable JavaScript in Chrome Settings
Step 1: Open Google Chrome and look at the top right corner of the window. Click the three vertical dots (the menu icon) to open the Chrome menu.
Step 2: From the dropdown menu, click "Settings" near the bottom of the list. A new tab will open showing Chrome Settings.
Step 3: On the left sidebar, click "Privacy and security." This section controls what websites are allowed to do on your computer.
Step 4: Under Privacy and security, click "Site Settings." This page shows permissions for different features like location, camera, and JavaScript.
Step 5: Scroll down the list until you see "JavaScript." Click on it to open the JavaScript settings.
Step 6: You will see a toggle switch next to "Allowed." If it is gray and switched to the left, JavaScript is off. Click the toggle to turn it on — it will turn blue and move to the right.
Step 7: Close the Settings tab. Go back to any website that was not working and refresh the page by pressing Ctrl+R (Windows) or Command+R (Mac). The website should now work normally.
Why websites need JavaScript to work
JavaScript is a programming language that runs inside your web browser. It powers interactive features like dropdown menus, form validation, image sliders, and real-time updates. Without it, websites can still load, but buttons and interactive elements will not respond to clicks.
Most websites today depend on JavaScript to function. Disabling it breaks the experience on nearly every modern site. The only reason to turn it off is if you are troubleshooting a specific problem or if you have security concerns about a particular website — and even then, you would normally block just that one site rather than disable JavaScript everywhere.
How to disable JavaScript for just one website
If you trust most websites but want to block JavaScript on a specific site, you do not have to turn off JavaScript globally. Instead, you can block it for just that one domain.
Step 1: Visit the website where you want to block JavaScript.
Step 2: Click the lock icon or information icon next to the website address in the address bar.
Step 3: Click "Site Settings" from the popup menu.
Step 4: Find JavaScript in the list and click it.
Step 5: Click the toggle to switch it to "Blocked." JavaScript will now be off only for this website, while remaining on everywhere else.
You can return to this same menu anytime to turn JavaScript back on for that site.
What to do if JavaScript is on but websites still do not work
If you have enabled JavaScript and websites are still broken, the problem is usually not JavaScript itself. Try refreshing the page first by pressing Ctrl+R or Command+R. If that does not work, try clearing your browser cache.
To clear your cache, press Ctrl+Shift+Delete (Windows) or Command+Shift+Delete (Mac). A window will open. Make sure "Cookies and other site data" and "Cached images and files" are checked, then click "Clear data." Refresh the website and try again.
If the website still does not work after clearing your cache, the problem may be with the website itself, not your browser. Try visiting the site on a different browser like Firefox or Safari to confirm. If it works there, contact the website owner to report the issue.
Check if JavaScript is actually enabled
If you want to verify that JavaScript is turned on without going through Settings, you can use the browser console. Press Ctrl+Shift+J (Windows) or Command+Option+J (Mac) to open the Developer Tools console at the bottom of your screen. If the console opens without errors, JavaScript is enabled.
You can also visit a test website like jsfiddle.net or codepen.io. These sites are built entirely with JavaScript. If they load and work normally, JavaScript is on. If they look broken or do not respond to clicks, JavaScript is off.
Frequently Asked Questions
Can I turn JavaScript off for security reasons?
Disabling JavaScript does block some malicious scripts, but it breaks almost every website. A better approach is to use a browser extension like uBlock Origin, which blocks ads and trackers without breaking functionality. If you are concerned about a specific website, block JavaScript for just that site instead of disabling it everywhere.
Will enabling JavaScript slow down Chrome?
No. JavaScript is part of how modern websites work, and disabling it does not make Chrome faster. In fact, many websites run slower without JavaScript because they cannot load content efficiently. Enabling JavaScript will not noticeably affect your browser speed.
Do I need to restart Chrome after enabling JavaScript?
No. The change takes effect immediately. You only need to refresh the website you were visiting by pressing Ctrl+R or Command+R to see the change.
What if I cannot find the JavaScript setting in Site Settings?
Make sure you are looking in the right place: Settings > Privacy and security > Site Settings, then scroll down. If you still cannot find it, you may be using an older version of Chrome. Update Chrome by clicking the three-dot menu, going to Help, and clicking "About Google Chrome." It will update automatically.
Can websites detect if JavaScript is disabled?
Yes. Websites can detect when JavaScript is off and usually show a message telling you to enable it. Some websites will not load at all without JavaScript. This is why most people keep it enabled — the web is built around it.