How to Disable JavaScript on Microsoft Edge

Microsoft Edge has been Chromium-based since January 2020, which means its JavaScript controls work almost exactly like Chrome's. What is different is the audience. People disable JavaScript in Edge for the same legitimate reasons they disable it in Chrome - privacy and tracking defence, web-development testing, performance on older hardware, accessibility with screen readers that prefer static HTML, and the occasional desire to read a long article on a site that fights you with twelve overlay scripts. Edge adds one more privacy lever on top of that: Tracking prevention, which blocks many third-party scripts even with JavaScript itself fully on.

This guide covers Edge's current UI as of 2026 (Edge 120 and later). You will find the global off switch, the edge://settings shortcut, the per-site allow-list, a note on Tracking prevention's Strict mode, the DevTools per-tab toggle for developers, and a quick way to verify JavaScript is actually off.

Before you disable: what breaks and what does not

Edge runs the same Chromium engine as Chrome, so the breakage profile is identical:

  • Single-page apps (Outlook web, Microsoft Teams web, OneDrive web, Slack, Notion, Gmail, X/Twitter, Instagram) will mostly fail to load past a blank screen.
  • Sign-in flows that rely on JavaScript-driven submit buttons may not work, even when the underlying form looks fine.
  • News sites, blogs, docs, and most reference content render normally because the article body is plain HTML.
  • Embedded videos, captchas, autocomplete search boxes, and infinite-scroll feeds will frequently break.

The healthy default for most readers is to disable JavaScript globally and then put the four or five sites you genuinely use every day on the allow-list. Instructions for both halves of that setup are below.

Disable JavaScript globally in Microsoft Edge

The path is virtually identical on every desktop platform Edge runs on, but the surrounding chrome (window decorations, menu placement, screenshot look) does change. Pick the platform that matches your machine. The mobile path is at the end of this section, since iOS routes through Safari's engine and Android has its own UI.

Windows 11 (most common)

Edge ships pre-installed on Windows 11 and is the default browser unless you change it. The walkthrough below uses a stock Edge 120+ install on Windows 11.

Step 1: Open Microsoft Edge

Launch Edge from the taskbar, the Start menu, or by pressing the Windows key and typing "Edge".

Microsoft Edge browser window open on Windows 11 with a fresh new tab
Edge running on Windows 11 with the default new-tab page.

Step 2: Open the three-dot menu

Click the three-dot icon in the top-right corner of the Edge window to open the main menu.

Edge main menu opened from the three-dot icon, showing entries for New tab, History, Downloads, and Settings
The Edge three-dot menu, where Settings lives near the bottom.

Step 3: Open Settings and pick Cookies and site permissions

Choose Settings from the menu, then click Cookies and site permissions in the left sidebar. This is the section that holds JavaScript and most other per-site controls.

Edge Settings page on the Cookies and site permissions tab, with the Site permissions section visible
Cookies and site permissions in the Edge Settings sidebar.

Step 4: Open All permissions

Scroll down the page until you reach the All permissions list. JavaScript sits in this group along with cookies, location, camera, and the rest of the per-site toggles.

Edge All permissions list showing entries including Location, Camera, Microphone, Notifications, and JavaScript
The full per-site permissions list in Edge on Windows 11.

Step 5: Click into JavaScript

Click the JavaScript row to open its detail page, where the global toggle and the per-site Allow and Block lists live.

Edge JavaScript permission detail page with the Allowed (recommended) toggle and Block, Allow lists
Edge JavaScript permission page, with the global toggle at the top.

Step 6: Confirm the current state

Out of the box the toggle reads Allowed (recommended) and is switched on. This is what a default Edge install looks like before any change.

Edge JavaScript toggle switched on, with the label Allowed (recommended)
JavaScript still allowed - the default Edge state.

Step 7: Switch the toggle off

Click the toggle. The label flips to Don't allow sites to use JavaScript and the change is saved instantly.

Edge JavaScript toggle switched off, with the label Don't allow sites to use JavaScript
JavaScript globally blocked in Edge for Windows 11.

From this point on, every new page Edge loads runs with JavaScript switched off. Tabs that were already open will keep their pre-disable state until you refresh them.

macOS Sequoia

Edge on macOS uses the same Chromium-based settings UI as the Windows version, so the page structure is identical. The window chrome (traffic-light controls, system fonts, accent colour) follows macOS rather than Windows. You can also press Cmd + , from any Edge window to jump straight to Settings, which skips steps 1 and 2 below.

Step 1: Launch Edge. Open Edge from the Dock, Launchpad, or Spotlight (Cmd + Space, then type "Edge"). The app opens to your usual new-tab page.

Step 2: Open the menu. Click the three-dot icon in the top-right of the Edge window, exactly as on Windows. Or, faster, press Cmd + , and skip to step 3.

Step 3: Open Settings

From the menu choose Settings. Edge opens its settings page in a new tab.

Edge Settings page on macOS Sequoia, showing the sidebar with Profiles, Privacy, Cookies and site permissions, and other tabs
The Edge Settings landing page on macOS.

Step 4: Pick Cookies and site permissions

Click Cookies and site permissions in the left sidebar.

Edge Cookies and site permissions tab on macOS, with the Site permissions header visible
Cookies and site permissions in Edge on macOS.

Step 5: Open All permissions

Scroll to the All permissions list, the same group of per-site toggles as on Windows.

Edge All permissions list on macOS Sequoia, including Location, Camera, Notifications, and JavaScript
The All permissions list in Edge on macOS.

Step 6: Confirm the current state

Click JavaScript. The detail page opens with the toggle set to Allowed (recommended) by default.

Edge JavaScript permission page on macOS Sequoia with the Allowed (recommended) toggle on
JavaScript allowed - the default state on macOS.

Step 7: Switch the toggle off

Click the toggle. The label switches to Don't allow sites to use JavaScript and Edge saves the change immediately.

Edge JavaScript toggle switched off on macOS Sequoia, label reads Don't allow sites to use JavaScript
JavaScript globally blocked in Edge for macOS Sequoia.

The Linux build of Edge ships with the same Settings UI, so the procedure is identical there - the pages look like the macOS screenshots above with GTK/KDE window chrome instead of Aqua.

iOS and iPadOS

Edge on iOS and iPadOS is a WebKit shell. Apple does not allow third-party browser engines on those platforms, so JavaScript for Edge, Chrome, Firefox, Brave, and every other iOS browser is governed by the system Safari setting. Disabling it once turns it off for all of them.

Step 1: Open the iOS Settings app

Tap the grey gear icon on your Home Screen or App Library to open Settings.

iOS Home Screen with the Settings app icon highlighted
The iOS Settings app on iPhone.

Step 2: Open Apps

Scroll down to the Apps section. On modern iOS, system browser settings live inside this list.

iOS Settings showing the Apps entry that holds per-app system options
The Apps section in iOS Settings.

Step 3: Tap Safari

Find and tap Safari in the apps list. This panel controls JavaScript for every browser on the device, Edge included.

iOS Apps list with Safari highlighted
Safari is the system-level WebKit owner on iOS.

Step 4: Open Advanced

Scroll to the bottom of the Safari panel and tap Advanced.

iOS Safari settings panel with Advanced near the bottom of the page
Advanced sits at the very bottom of the Safari panel.

Step 5: Confirm JavaScript is currently on

The JavaScript toggle is the first row in Advanced and ships switched on.

iOS Safari Advanced screen with the JavaScript toggle in the on position
JavaScript on - the default for Safari and every iOS browser.

Step 6: Switch JavaScript off

Tap the toggle. The change applies instantly across Safari, Edge, Chrome, and any other browser on the device.

iOS Safari Advanced screen with the JavaScript toggle switched off
JavaScript off system-wide on iOS - affects Edge, Chrome, and every WebKit browser.

Edge on Android: tap the three-dot menu in the bottom bar, choose Settings, then Site permissions, then JavaScript, and switch the toggle off. The Allow and Block lists work the same way as on desktop.

The fast path: edge://settings/content/javascript

Skip the menu by typing this into the Edge address bar:

edge://settings/content/javascript

Press Enter and Edge jumps straight to the JavaScript permission page - the same destination shown in step 5 of the Windows walkthrough.

Edge JavaScript permission detail page reached via the edge://settings/content/javascript URL
The JavaScript permission page reached directly from the address bar.

The current Edge build also accepts the longer modern path edge://settings/privacy/sitePermissions/allPermissions/javaScript, which is the same destination through the new Privacy, search, and services tree. Either works; the short form is easier to type.

Other useful Edge shortcuts in the same family:

  • edge://settings/content opens the full Site permissions page.
  • edge://settings/privacy opens Privacy, search, and services - useful for changing Tracking prevention at the same time.

Allow JavaScript on a single site (allow-list workflow)

The two-tier setup most privacy-conscious Edge users want: JavaScript blocked everywhere, switched on only for trusted sites.

  1. Confirm the global toggle on edge://settings/content/javascript is set to Don't allow sites to use JavaScript.
  2. Scroll to the Allow section.
  3. Click Add.
  4. Enter the site, for example [*.]github.com to cover all of GitHub including subdomains, or https://outlook.office.com for an exact host.
  5. Click Add. The site appears in the Allow list and JavaScript runs there as normal.

The [*.] wildcard means "any subdomain". [*.]example.com matches www.example.com, app.example.com, and so on. Without it, the rule is exact-host only.

You can also do this from the page itself: click the small lock or tune icon to the left of the URL bar, choose Permissions for this site, find JavaScript, and switch it from Block to Allow. Edge writes the site to your allow-list automatically.

Block JavaScript on a single site (block-list workflow)

The reverse setup - JavaScript on everywhere except for a few sites you specifically want to silence:

  1. Leave the global toggle on Allowed (recommended).
  2. Under the Block section, click Add.
  3. Enter the site or pattern and click Add.

That domain now loads with JavaScript switched off while the rest of the web works normally.

Edge's other privacy lever: Tracking prevention

If your reason for disabling JavaScript is privacy specifically, do not skip Edge's built-in Tracking prevention setting. It blocks third-party trackers, fingerprinters, and many ad-related scripts even when JavaScript stays on. For a lot of users this is a better trade-off than turning JavaScript off entirely, because first-party site features keep working.

  1. Go to edge://settings/privacy.
  2. Under Tracking prevention, choose Strict.

Strict mode blocks the largest set of trackers Edge knows about, and Microsoft maintains and updates that list. You can stack the two settings: JavaScript globally off plus Tracking prevention on Strict gives the strongest privacy posture, with the trade-off that more sites will break. JavaScript globally on plus Tracking prevention on Strict is the more practical default for most readers.

How to verify JavaScript is now off

Two ways to confirm the change actually took effect:

  1. Open a new tab and load any JavaScript-detection page. A page that explicitly tests for JS support will show a "JavaScript is disabled" message when the engine is off.
  2. Open Edge DevTools with F12, or with Cmd + Option + I on Mac and Ctrl + Shift + I on Windows. Click the Console tab and type 1+1 followed by Enter. DevTools may still respond with 2 even when JavaScript is off for the page itself, so the JS-detection page is the more reliable signal.

If you want a quick visual check, return to edge://settings/content/javascript and confirm the toggle still reads Don't allow sites to use JavaScript:

Verification - Edge JavaScript permission page with the toggle off and label reading Don't allow sites to use JavaScript
The state to confirm: toggle off, label reads "Don't allow sites to use JavaScript".

Disable JavaScript only inside Edge DevTools (per-tab testing)

This is what most front-end developers actually want: JavaScript off for one tab during testing, while the global setting stays at its everyday value.

  1. Open the page you want to test.
  2. Press F12 (Windows) or Cmd + Option + I (Mac) to open DevTools.
  3. Open the Command Menu with Ctrl + Shift + P (Windows) or Cmd + Shift + P (Mac).
  4. Type Disable JavaScript and press Enter.
  5. Reload the page. JavaScript is now off for this tab only.

Re-enable it by running the same command (which now reads Enable JavaScript) or by closing DevTools.

If a site you need stops working

Pick the least disruptive option:

  1. Add the site to the Allow list via edge://settings/content/javascript. Most surgical fix.
  2. Use a second Edge profile with JavaScript fully on. Click the profile icon in the top-right, choose Add profile, and keep that profile for JS-heavy work. Switch profiles when needed.
  3. Re-enable JavaScript globally and rely on Tracking prevention plus a per-site Block list for the worst offenders. This is the lighter-touch privacy posture and the one most users settle on long-term.

For most readers the allow-list pattern - global block plus a small set of trusted exceptions - hits the sweet spot. It cuts most fingerprinting and ad-tech scripts on the long tail of the web while keeping your daily-driver sites usable.

F.A.Q

Why disable JavaScript in Edge instead of just enabling Tracking prevention?

Tracking prevention on Strict blocks a curated list of known trackers, but it does not stop first-party fingerprinting or scripts that the site itself runs. Disabling JavaScript is a more aggressive step that stops all client-side code regardless of who serves it. The two settings stack: many privacy-focused users keep JavaScript globally off, switch Tracking prevention to Strict, and add a small allow-list of trusted sites where JavaScript runs as normal. Web developers also disable JavaScript temporarily to confirm their pages work without it, which matters for accessibility, SEO, and graceful degradation.

Will websites still work in Edge with JavaScript off?

Static content sites - news, blogs, docs, Wikipedia-style pages - usually work fine, because the article body is plain HTML. Web apps like Outlook on the web, Teams web, OneDrive, Gmail, and most social networks will fail to load past a blank screen, because they are built as JavaScript-driven single-page apps. The practical setup is to switch JavaScript off globally on edge://settings/content/javascript and then add the four or five web apps you genuinely use to the Allow list. That gives you the privacy and performance wins everywhere else without breaking your daily workflow.

How do I disable JavaScript for one specific site in Edge?

Open edge://settings/content/javascript and scroll to the Block section. Click Add and enter the domain. Use the [*.]example.com pattern to cover all subdomains, or paste a full URL like https://example.com to scope the rule to a single host. From now on Edge loads that site without JavaScript while the rest of the browser keeps working normally. You can also do it from the site itself: click the lock or tune icon to the left of the URL, choose Permissions for this site, find JavaScript, and switch it to Block.