To temporarily turn off JavaScript, open your browser's site settings or a developer tool and disable scripting for just that page or tab, then flip it back on afterward. The fastest and most reversible route is a per-site permission toggle in Chrome, Edge, Safari, or Firefox; a developer-tools "disable JavaScript" switch is quicker still but usually resets when you close DevTools. Either way, the setting is temporary in the sense that it doesn't change your global browser default—only the specific site or debugging session you're working with.
That distinction matters because "temporarily" can mean three different things: off for one site while you read it, off for a few minutes while you debug, or off until you reload. This guide covers each in workable order, notes what breaks when scripts stop, and explains how to confirm the change actually took effect. Version specifics for Chrome, Edge, Safari, and Firefox as of late 2026 are described at the principle level; menu wording shifts between releases, so treat exact labels as a map rather than a guarantee.
What "temporarily" actually means before you start
Browsers treat JavaScript in layers. There's a global default (on for everyone), a per-site permission (this site may or may not run scripts), and a session-level debugging override in developer tools. Temporary usually means you touch the narrowest layer that solves your problem.
Per-site blocking is the most useful "temporary" option for everyday reading: it persists for that domain until you remove it, survives restarts, and leaves every other site untouched. Developer-tools disabling is the most ephemeral: it applies to the current tab and typically clears when you close the panel or reload. Chrome's DevTools, for example, has long reset its Disable JavaScript checkbox on reload or when DevTools closes, so it's a debugging tool rather than a browsing preference.
Pick per-site blocking if you want a page to stay script-free across visits for a while. Pick DevTools if you need scripts off for thirty seconds to test a layout. Pick a global toggle only when you're deliberately testing a site with everything disabled and will turn it back on right after.
Prerequisites are minimal: a current browser, the page open, and—for developer tools—the ability to open them (F12, or the browser menu's developer submenu). On managed work devices, an administrator policy may lock script permissions, in which case the toggles appear grayed out and you'd need your IT team.
Turn off JavaScript for one site in Chrome or Edge
Chrome and Edge share the same Chromium engine and nearly identical settings layout, so one procedure covers both.
1: Open the page you want to change and click the tune or lock icon at the left of the address bar (Chrome labels the panel "Site settings" via the sliders icon; Edge uses a similar icon). 2: In the panel, find the JavaScript entry. It shows "Allowed" by default. 3: Switch it to Blocked. 4: Reload the page. Scripts from that origin should stop running.
To undo it, return to the same panel and set JavaScript back to Allowed, or open the browser's site-settings list (chrome://settings/content/javascript in Chrome; edge://settings/content/javascript in Edge) and remove the site from the Blocked list. Success check: after blocking, a page that relies on scripts usually shows static content only—menus may not open, and embedded video players often show a blank frame. If the page looks identical and fully interactive, the block likely didn't apply, so confirm the domain in the address bar matches the one you edited (www versus bare domain counts as a different origin).
One quirk: some sites set a cookie or use a service worker that can keep certain behavior alive briefly. A hard reload (Ctrl+Shift+R or Cmd+Shift+R) or a private window with the block applied is a cleaner test.
Do it per-site in Safari on macOS and iOS
Safari splits the controls between desktop and mobile, and the desktop version hides per-site options behind the Settings menu rather than the toolbar.
On macOS:
1: With the site open, choose Safari > Settings (or Preferences on older versions) and click the Websites tab. 2: Select JavaScript in the left column. You'll see a list of sites you've configured plus "Configured Websites." 3: Find your site, or use the "When visiting other websites" dropdown to set a default for all unlisted sites. 4: Set the site to Off (blocked) or On (allowed). Changes apply on reload.
On iPhone and iPad, per-site control lives in the page menu: tap the "aA" button in the address bar, choose Website Settings, and toggle JavaScript off for that site. To change the global default, go to Settings > Safari > Advanced and turn JavaScript off entirely. That global switch is not temporary in spirit—it affects every site—so use the per-site toggle unless you truly want everything script-free.
Safari's per-site settings persist until you delete them, so treat this as "temporary" in the sense of reversible, not self-expiring.
Use Firefox's about:config and permission exceptions
Firefox historically exposed a single global JavaScript toggle under Settings > Privacy & Security, but that checkbox was removed from the standard interface in recent versions. As of 2026, the practical paths are the hidden configuration editor and per-site permissions via an extension-free route in settings.
To disable scripting globally through the configuration editor:
1: Type about:config in the address bar and accept the warning. 2: Search for javascript.enabled. 3: Toggle it to false. Scripts stop across all sites immediately.
This is a blunt instrument: every site loses scripting until you toggle it back. It's ideal for a quick test and terrible for normal browsing, because modern sites lean heavily on scripts even for basic navigation. To undo, set javascript.enabled back to true.
For per-site control without the global switch, Firefox's Settings > Privacy & Security includes an Exceptions or Permissions area where you can manage site-specific allowances, though JavaScript blocking per site is less prominent than in Chromium browsers and often handled through an add-on such as NoScript. If your goal is a narrow, reversible block on one domain, a reputable script-blocking extension with a per-site allow/block list is the more ergonomic path—just verify the extension's publisher, since permissions to modify page content are powerful.
The developer-tools shortcut for a quick test
When you need scripts off for a minute to inspect markup or reproduce a bug, developer tools are faster than any settings menu.
In Chromium-based browsers (Chrome, Edge, Brave, Opera):
1: Open DevTools with F12 or Ctrl+Shift+I (Cmd+Option+I on macOS). 2: Press Ctrl+Shift+P (Cmd+Shift+P on macOS) to open the command menu. 3: Type "Disable JavaScript" and select the command. A yellow warning icon appears in the console, and the setting applies to the current tab. 4: To restore, run "Enable JavaScript" the same way, or reload.
Firefox's DevTools has an equivalent toggle in its settings panel (the gear icon in the Debugger or the toolbox settings), and Safari's Web Inspector offers a Disable JavaScript checkbox under the Develop menu once "Show features for web developers" is enabled in Safari settings. In all three, the override is session-scoped: closing DevTools or restarting the browser returns to normal. That's what makes it genuinely temporary.
Developers often prefer this because it isolates the current tab without leaving a lasting permission behind. The trade-off is that it's invisible outside DevTools, so if you forget it's on, a page may look broken until you remember to re-enable.
Confirm the change worked
You don't need to trust the toggle—verify it. A reliable check is to open DevTools and look at the console: if a page's scripts are blocked, console messages from that origin stop appearing, and a Chromium browser may log a warning that JavaScript is disabled. Another quick test is to visit a page that depends heavily on scripting, like a web-based mail client or an interactive map; if it renders as a static skeleton with no interactivity, the block is active.
For per-site settings, the address-bar panel itself shows the current state ("Blocked" or "Allowed"), which is the simplest confirmation. If you blocked a site but it still runs scripts, check for a second domain serving the interactive part—many sites load scripts from a subdomain—and confirm you're editing the right origin. A private window is a clean control: apply the block there and compare against a normal window.
What usually breaks, and why that's expected
Turning off JavaScript is a stress test of how much a site depends on it, and in 2026 the answer is "a lot." Common casualties include:
Navigation menus and dropdowns built with script event handlers, which may not open at all. Embedded video players and some audio players, which often fail to initialize. Infinite-scroll feeds and "load more" buttons, leaving only the first batch of content. Forms with client-side validation or submission handled by script, which may not submit. Login flows on sites that render the sign-in form via script, which can leave you stuck at a blank panel. Analytics and tracking scripts, which is often the point—some people block scripts specifically to reduce tracking and page weight.
That's the trade-off behind disabling scripting: you gain predictability, lower page weight, and insulation from some tracking and ad behavior, but you lose interactivity and sometimes core functionality. A news article may read fine; a web app probably won't.
When to use an extension instead of built-in settings
Built-in per-site toggles are fine for occasional use, but they're clumsy if you want script blocking as a browsing habit. Extensions like NoScript (Firefox) or script-blocking add-ons for Chromium let you allow scripts by default and block them per domain with a click, with granular control over which third-party domains run. That granularity matters on sites that mix first-party scripts (needed for layout) with third-party ones (often trackers).
The caution is trust: an extension that can read and modify every page you visit is a serious permission. Choose well-reviewed publishers, prefer open-source options where you can inspect the code, and remove extensions you no longer use. For a one-off "turn it off for this page," the built-in toggle is safer and simpler than installing anything.
Edge cases: service workers, cached pages, and locked-down devices
A few situations surprise people. First, service workers can cache a site's scripts and serve them even when scripting is nominally blocked, so a site may still behave partly scripted until you clear site data or use a private window. Second, some content is pre-rendered: a page may look functional because the server sent static HTML that was generated by scripts earlier, not because your browser is running them. Third, on school or corporate machines, group policy may force JavaScript on and gray out the toggles; you can't override that locally, and the right move is to ask your administrator rather than fight the policy.
If you're troubleshooting a broken page, do the reversible checks first—toggle scripting back on, hard reload, try a private window—before assuming the site itself is down. And if a site requires JavaScript for something essential like banking or healthcare access, don't leave it blocked; re-enable it for that domain and use the block only where it's safe.
A simple decision guide
For most people, the per-site toggle in Chrome, Edge, or Safari is the answer: it's reversible, scoped to one domain, and survives restarts. Use DevTools when you want a thirty-second test that cleans itself up. Reach for about:config or a global Safari setting only when you're deliberately testing a site with everything off. And if you find yourself blocking scripts constantly, a reputable extension with a per-domain allow list will save you repeated trips to settings.
Whichever route you take, know how to undo it before you start, and verify the state afterward. "Temporary" only stays temporary if you can reliably flip it back.