To turn on JavaScript, open your browser's site settings and allow scripts: Settings, then Privacy and security, then Site settings, then JavaScript in Chrome; Settings, then Cookies and site permissions, then JavaScript in Edge; and the javascript.enabled preference in Firefox. Reload the page afterwards.
Most browsers ship with JavaScript already on, so when a page says it is disabled, the real culprit is often a blocked site, an extension or a managed policy rather than the global setting. This guide covers the quick steps, how to check the current state from the console, and how to troubleshoot.
| Browser | Where to turn it on |
|---|---|
| Chrome | Settings, Privacy and security, Site settings, JavaScript, "Sites can use JavaScript" |
| Edge | Settings, Cookies and site permissions, JavaScript, Allowed |
| Firefox | about:config, set javascript.enabled to true |
| Safari on Mac | Settings, Advanced, show the Develop menu, make sure "Disable JavaScript" is off |
| Safari on iPhone | Settings, Apps, Safari, Advanced, JavaScript on |
| Chrome on Android | Menu, Settings, Site settings, JavaScript, allow |
Menu wording changes between versions, but each of these items has existed for several releases and the search box at the top of each Settings page will find "JavaScript" directly.
You do not have to enable it everywhere. In Chrome and Edge, click the icon at the left of the address bar, open Site settings and set JavaScript to Allow. The same list is available in the main settings, where you can add a site to the allowed list or remove it from the blocked list.
This is the better choice if you run with scripts blocked by default for privacy and only need one trusted site to work.
Open developer tools with F12 (or Cmd+Option+I on macOS), choose Console and run:
If the console prints JavaScript works object, scripts run. If the console shows an error, you can also read the exact failure, such as a blocked request or a Content Security Policy violation, which a plain "enable JavaScript" message hides.
Developers can detect and handle the disabled case with a noscript fallback:
chrome://policy to see managed values; in Firefox, open about:policies.If a particular site still fails, it may need cookies or third-party scripts that you have blocked, which is separate from the JavaScript setting itself.
Administrators control the setting through policy, not the settings page. Chrome and Edge use the DefaultJavaScriptSetting policy, where the value 1 allows JavaScript and 2 blocks it. Firefox uses a policies file, and JavaScript can be switched through its preferences when the policy does not lock them. If the toggle in settings is greyed out with a "managed by your organization" notice, ask your administrator to change the policy; changing local settings will not override it.
HTML defines page content and CSS defines its look, but JavaScript handles behaviour: form validation, menus, loading data without a full page refresh, maps, video controls and logins. A page can display text without it, but anything interactive depends on scripts. This is why single-page applications show a blank page or a warning when scripting is off.
Yes, in Chrome, Edge, Firefox and Safari. It is turned off only by you, an extension, a security product or an administrator.
Usually a page reload is enough. Restart the browser if the setting seems to be ignored.
Browsers sandbox scripts, but malicious sites exist. Keep the browser updated, avoid untrusted extensions and consider blocking scripts on sites you do not trust.
It can make some pages lighter, but many sites will break. Allowing it per site is a more practical compromise.
JavaScript is on by default. If it is off, enable it in your browser's site settings or the Firefox preference, then reload. Test in the console, allow it per site if you prefer, and look at extensions and managed policies when it still will not run.