How to Disable JavaScript in Chrome for One Tab or a Site

To disable JavaScript in Chrome for one tab, open DevTools, press Ctrl+Shift+P on Windows or Linux (or Command+Shift+P on Mac), search for Disable JavaScript, and press Enter. Keep DevTools open: Chrome keeps JavaScript disabled in that tab only while DevTools is open. For a longer-lasting block, change the JavaScript permission for one site or set a browser-wide default.

The DevTools method is useful for testing a page or checking whether a feature depends on JavaScript. It is not a reliable way to get rid of every sign-in prompt or pop-up, and turning JavaScript off can make websites harder to use.

Temporarily disable JavaScript in one Chrome tab

These steps apply to desktop Chrome. They do not change the setting in every tab or create a permanent browser preference.

  1. Open the page and launch DevTools. On Windows or Linux, press Ctrl+Shift+I. On Mac, press Command+Option+I. You can also open Chrome’s three-dot menu and choose More tools > Developer tools. DevTools can be docked beside or below the page; either layout works.
Chrome menu with More tools expanded and Developer tools highlighted.
Illustration of the Chrome menu route to Developer tools.
  1. Open the Command Menu. With DevTools focused, press Ctrl+Shift+P on Windows or Linux, or Command+Shift+P on Mac. The Command Menu belongs to DevTools; if the shortcut does not open it, click inside DevTools and try again.
  2. Run the disable command. Type javascript, select Disable JavaScript from the results, and press Enter. If more than one result appears, choose the command with that exact name.
DevTools Command Menu showing the Disable JavaScript command after searching for javascript.
Illustration of the DevTools command used to disable JavaScript.
  1. Reload the page while DevTools stays open. Reloading lets the page load again without running JavaScript, which is useful when you are checking what scripts affect during startup. Chrome shows a disabled-JavaScript indicator near the address bar and a warning next to Sources in DevTools.
Chrome tab with JavaScript disabled, showing the address bar indicator and a warning beside Sources.
Illustration of the disabled-JavaScript indicator and Sources warning.

The setting follows the current tab while DevTools remains open. If you navigate to another page in that tab, JavaScript remains disabled there too. Opening a separate tab does not apply the DevTools change to that new tab.

Block JavaScript for one site or set a default

Use Chrome’s site permissions if you want the restriction to remain in place after closing DevTools. Chrome lets you change permissions for an individual site without changing the default for other sites.

Block it for one website

Open the site in Chrome, select the site information icon to the left of its address, then choose Site settings. Find JavaScript and set the permission to Block. Chrome saves site-setting changes automatically. Reload the page to apply the new permission. To restore the site, return to the same setting and allow JavaScript again, or reset the site’s permissions.

Change the default for websites

To block JavaScript broadly on desktop Chrome, open the three-dot menu and go to Settings > Privacy and security > Site settings > JavaScript. Choose Don’t allow sites to use JavaScript. This changes the default for websites, so pages that rely on scripts may not work. You can return to this screen and allow JavaScript again. A site-specific permission can be set separately from the default.

Chrome JavaScript site setting with Don’t allow sites to use JavaScript selected.
Illustration of Chrome’s JavaScript setting for the browser default.

Chrome’s menu wording and layout can vary slightly across releases, but the JavaScript control remains under Site settings. Google’s Chrome site-permissions guide covers both the default and individual-site settings.

Should you turn JavaScript off to stop pop-ups?

Usually, no. JavaScript powers interactive parts of websites, including forms and games, and disabling it may also stop sign-in flows, menus, embedded media, or checkout controls from working. Some pages may still show prompts or open windows through other browser features, so disabling scripts is not a dependable pop-up blocker.

If you only want to block unwanted pop-up windows or redirects, use Chrome’s Pop-ups and redirects permission instead: open Settings > Privacy and security > Site settings > Pop-ups and redirects, then choose a default or adjust one site. Chrome blocks pop-ups by default, and its pop-up settings guide explains how to manage exceptions. Notification messages are a separate permission and can be blocked separately.

Turn JavaScript back on

For the temporary DevTools change, reopen the Command Menu and run Enable JavaScript, or simply close DevTools. Chrome’s documented DevTools workflow keeps JavaScript off only in the current tab while DevTools is open; closing it restores JavaScript. If you changed a site or browser default in Settings, go back to the JavaScript permission and allow sites again. For more detail, see Chrome’s DevTools instructions for disabling JavaScript.

Leave a Comment

How to Disable JavaScript in Chrome for One Tab or a Site

How to Disable JavaScript in Chrome for One Tab or a Site

Learn how to disable JavaScript in Chrome temporarily with DevTools, block it for one site, or change the browser default, plus how to restore it.

How to Collapse and Expand Tab Groups in Chrome

How to Collapse and Expand Tab Groups in Chrome

Organize related Chrome tabs into a group, then hide or reopen them with one click. See the current desktop steps, keyboard option, and what collapsing does.

How to Change a Chrome Profile Name on Desktop

How to Change a Chrome Profile Name on Desktop

Rename a Chrome profile from its menu or profile manager, see what the label affects, and fix display delays without changing your Google Account name.

How to Fix Chrome Sync Pausing and Asking You to Sign In

How to Fix Chrome Sync Pausing and Asking You to Sign In

Fix Chrome sync pausing and repeated sign-in prompts by restoring account access, keeping site data, updating Chrome, and checking extensions or profiles.

How to Fix Chrome Remote Desktop Not Working

How to Fix Chrome Remote Desktop Not Working

Chrome Remote Desktop not working? Fix offline hosts, update Chrome, reset remote access, check permissions, firewall rules, and managed-network restrictions.

Marketstack Review: Real-Time, Intraday & Historical Stock Market Data API

Marketstack Review: Real-Time, Intraday & Historical Stock Market Data API

Marketstack review covering API v2, real-time and intraday data, historical coverage, pricing, limits, pros, cons, and who should use it.

Activate YouTube at youtube.com/activate: Full TV Sign-In Guide

Activate YouTube at youtube.com/activate: Full TV Sign-In Guide

Learn how to activate YouTube at youtube.com/activate or yt.be/activate, enter your TV code, choose your Google Account, and fix sign-in problems.

How to Link Directly to Text on a Web Page in Chrome

How to Link Directly to Text on a Web Page in Chrome

Learn how to link directly to selected text in Chrome with Copy link to highlight, how text-fragment URLs work, and what to do if a link fails.

Can't Hear Anyone on Discord? Fix Discord Audio Not Working

Can't Hear Anyone on Discord? Fix Discord Audio Not Working

Can't hear anyone on Discord? Check Deafen and user volume, choose the right output device, reset Voice & Video, and fix Windows audio settings.

How to Add Roles in Discord, Rename Them, and Assign Members

How to Add Roles in Discord, Rename Them, and Assign Members

Learn how to add roles in Discord, change a role name, set permissions, assign or remove members, reorder roles, and delete roles safely.