Hero Background

Next-Gen App & Browser Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

How to turn on JavaScript in your browser?

JavaScript is enabled by default in every modern browser, so most of the time there is nothing to turn on. If a page warns that JavaScript is disabled, it was switched off earlier, by a corporate policy, or by a privacy extension. To turn it back on, open your browser's settings, find the JavaScript permission, and set it to allowed. The exact path differs per browser: Chrome and Edge keep it under Site settings, Firefox hides it in about:config, Safari on macOS puts it under Security, iOS exposes it under Settings, and Android Chrome under Site settings.

Why You Might Need to Turn On JavaScript

JavaScript powers almost every interactive feature on the web, from forms and menus to single-page apps and dashboards. Because of that, browser vendors keep it on by default. You typically only need to enable it manually in a few situations:

  • It was disabled earlier: someone toggled it off for privacy, performance, or testing and never turned it back on.
  • An extension blocks it: script blockers such as NoScript or strict privacy add-ons can disable JavaScript globally or per site.
  • A managed device policy: on work or school machines, an administrator policy may restrict JavaScript by default.
  • You are testing graceful degradation: developers and QA engineers turn JavaScript off and on deliberately to see how a page behaves without it.

How to Enable JavaScript in Google Chrome (Desktop)

Chrome stores the JavaScript control under its Site settings, alongside permissions like camera and location.

  • Open Chrome and click the three-dot menu in the top-right corner, then choose Settings.
  • In the left sidebar, select Privacy and security.
  • Click Site settings, then scroll to the Content section and choose JavaScript.
  • Select Sites can use JavaScript to allow it everywhere.

Shortcut: paste chrome://settings/content/javascript into the address bar and press Enter to jump straight to this page. Reload any open tabs for the change to take effect.

How to Enable JavaScript in Microsoft Edge (Desktop)

Edge is built on the same Chromium engine as Chrome, so the JavaScript control is similar, but it lives under a different menu name.

  • Open Edge and click the three-dot menu in the top-right corner, then choose Settings.
  • Select Cookies and site permissions from the left sidebar.
  • Under All permissions, click JavaScript.
  • Set the toggle to Allowed (recommended).

Shortcut: paste edge://settings/content/javascript into the address bar to open this page directly.

How to Enable JavaScript in Mozilla Firefox

Firefox does not expose a JavaScript switch in its normal Settings UI because it assumes JavaScript should always be on. The control lives in the advanced configuration page.

  • Type about:config in the address bar and press Enter.
  • On the warning screen, click Accept the Risk and Continue.
  • In the search field, type javascript.enabled.
  • If the value reads false, click the toggle button on the right to set it to true.

In current Firefox builds, javascript.enabled is set to true by default, so you usually only land here if the preference was changed earlier.

How to Enable JavaScript in Safari on macOS

On a Mac, Safari keeps the JavaScript checkbox in its preferences. JavaScript is on by default, and newer Safari versions removed the old Develop-menu disable toggle, so the Security tab is the place to confirm it.

  • Open Safari, then choose Safari > Settings from the menu bar (or press Cmd + ,).
  • Click the Security tab.
  • Tick the Enable JavaScript checkbox.
  • Close the Settings window. On recent macOS releases, you may need to enable the Develop menu from the Advanced tab first if you want finer per-page control.

For a deeper, Mac-only walkthrough, see How to Enable JavaScript on Mac?

How to Enable JavaScript in Safari on iPhone and iPad

On iOS and iPadOS, JavaScript is a system-wide setting. Because every iOS browser is required to use Apple's WebKit engine, this one toggle controls JavaScript for Safari, Chrome, Edge, and Firefox on the device.

  • Open the Settings app.
  • Tap Apps, then tap Safari. (Apple moved Safari under the Apps section in recent iOS releases.)
  • Scroll down and tap Advanced.
  • Turn on the JavaScript toggle.

For an iPhone-focused guide covering both Safari and Chrome, see How to Enable JavaScript on iPhone?

How to Enable JavaScript in Chrome on Android

On Android, Chrome carries its own per-app Site settings, separate from the system. The path mirrors desktop Chrome but lives inside the mobile menu.

  • Open Chrome and tap the three-dot menu in the top-right corner.
  • Tap Settings, then scroll to and tap Site settings.
  • Tap JavaScript.
  • Turn the toggle on so that it reads Allowed.

Quick Address-Bar Shortcuts

If you would rather skip the menus, these direct addresses open the JavaScript control in one step.

BrowserDirect path
Chrome (desktop)chrome://settings/content/javascript
Edge (desktop)edge://settings/content/javascript
Firefox (desktop)about:config → javascript.enabled = true
Safari (macOS)Safari > Settings > Security > Enable JavaScript
Safari (iOS / iPadOS)Settings > Apps > Safari > Advanced > JavaScript
Chrome (Android)Settings > Site settings > JavaScript

Allowing JavaScript for a Single Site

You do not always have to turn JavaScript on globally. Chromium browsers let you keep it blocked everywhere and allow it only where you need it.

  • Chrome and Edge: on the JavaScript settings page, use the Allowed to use JavaScript list and add the site's URL. The site runs scripts while the rest of the web stays blocked.
  • Per-page in the address bar: click the tune or lock icon to the left of the URL, open Site settings, and switch JavaScript to Allow for just that domain.
  • Firefox: the javascript.enabled preference is global, so Firefox does not offer a built-in per-site allow list; use an extension if you need granular control.

Testing How Your Site Behaves With JavaScript On and Off

Turning JavaScript on is the easy part. The harder question for developers and QA teams is whether a site behaves correctly when scripts are enabled across every browser engine, and whether it degrades gracefully when they are not. Chrome and Edge share the Chromium engine, Firefox runs Gecko, and Safari runs WebKit, so the same JavaScript can behave differently on each.

Rather than installing and toggling every browser locally, you can run the same page across Chrome, Edge, Firefox, and Safari on a cloud platform. With TestMu AICross Browser Testing, you can open your page on real browser and OS combinations, confirm JavaScript-driven features render correctly, and verify fallbacks when scripts are blocked, all from one dashboard.

For mobile coverage, you can do the same on physical handsets using a Real Device Cloud, checking how JavaScript behaves in Safari on iPhone and Chrome on Android without managing a device lab.

Frequently Asked Questions

Is JavaScript turned on by default in browsers?

Yes. Every modern browser, including Chrome, Edge, Firefox, Safari, and Android Chrome, ships with JavaScript enabled by default. You only need to turn it on manually if it was disabled earlier, by a privacy extension, or by a corporate policy.

How do I quickly jump to the JavaScript setting in Chrome or Edge?

Paste chrome://settings/content/javascript into Chrome's address bar, or edge://settings/content/javascript into Edge's, and press Enter. Both open the JavaScript permission page directly, where you can set it to Allowed.

Why is there no JavaScript toggle in Firefox settings?

Firefox assumes JavaScript should always be on, so it hides the control. To change it, open about:config, search for javascript.enabled, and make sure it is set to true. It is true by default in current Firefox builds.

Where is the JavaScript setting on iPhone and iPad?

On iOS and iPadOS, go to Settings, tap Apps, tap Safari, tap Advanced, and turn on the JavaScript toggle. Because every iOS browser uses Apple's WebKit engine, this single system setting controls JavaScript for Safari, Chrome, Edge, and Firefox on the device.

Can I enable JavaScript for one website only?

Yes. Chrome and Edge let you keep JavaScript blocked globally while allowing it for specific sites. On the JavaScript settings page, add the site under the Allowed-to-use list. Firefox controls JavaScript globally rather than per site.

How can I test how my site behaves with JavaScript on and off?

Toggle the per-browser setting described above, reload the page, and compare. For thorough coverage, run the same checks across Chrome, Edge, Firefox, and Safari on a cloud cross-browser testing platform so you can confirm graceful degradation on every engine without maintaining each browser locally.

Related Questions

Test Your Website on 3000+ Browsers

Get 100 minutes of automation test minutes FREE!!

Test Now...

KaneAI - Testing Assistant

World’s first AI-Native E2E testing agent.

...

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests