- How to Disable JavaScript in Google Chrome
- What to Know
- How to Disable JavaScript in Chrome
- How to Enable or Disable JavaScript Only on Specific Pages
- Why Disable JavaScript?
- How to enable or disable JavaScript in a browser
- Google Chrome
- Allow or block JavaScript on specific websites
- Mozilla Firefox
- Microsoft Edge
- Microsoft Edge Legacy
- Internet Explorer
- Android phone & tablet
- Safari (macOS)
- Safari (iPhone & iPad)
- Opera
- Related information
- Your browser is currently set to block JavaScript
How to Disable JavaScript in Google Chrome
Scott Orgera is a former Lifewire writer covering tech since 2007. He has 25+ years’ experience as a programmer and QA leader, and holds several Microsoft certifications including MCSE, MCP+I, and MOUS. He is also A+ certified.
What to Know
- Go to Menu >Settings >Privacy & security >Site Settings >Content >JavaScript. Toggle off JavaScript in Chrome.
- For specific pages: In Chrome’s JavaScript settings, in the Block section, select Add to specify a URL in which to block JavaScript.
- In the Allow section, select Add to specify a URL where you want to allow JavaScript. (Do this when JavaScript is disabled.)
This article explains how to disable JavaScript in the Google Chrome web browser if you want to block ads on the pages you visit, fix technical issues, or if you have security concerns.
How to Disable JavaScript in Chrome
Follow these steps to disable JavaScript in the Google Chrome browser:
- Open the Chrome browser and select the main menu button, which appears as three vertically-aligned dots located in the upper-right corner of the browser window.
Select Settings. The Chrome settings display in a new tab or window, depending on your configuration.
Under the Privacy and security section, select Site Settings.
Under Content, select JavaScript.
Turn off the toggle switch disable JavaScript in Chrome.
Lifewire also has guides on how to disable JavaScript in Firefox and Safari.
How to Enable or Disable JavaScript Only on Specific Pages
Blocking JavaScript can disable functionality on websites, and may make some websites unusable. Blocking it in Chrome isn’t an all-or-nothing setting, though. You can choose to block specific sites, or, if you block all JavaScript, set exceptions for specific websites you define.
You can find these settings in the JavaScript section of the Chrome settings. Beneath the switch to disable all JavaScript are two sections, Block and Allow.
- In the Block section, select Add to specify the URL for the page or site you want to disable JavaScript. Use the Block section when the JavaScript switch is set to enabled (see above).
- In the Allow section, select Add to specify the URL of a page or site on which you want to allow JavaScript to run. Use this when the toggle switch is off to disable all JavaScript.
On older versions of Chrome, the JavaScript section has a Manage exceptions button, which allows you to override the radio button settings for specific user-defined domains or individual pages.
Why Disable JavaScript?
There are several reasons why you may want to disable JavaScript code from running in a browser. The biggest reason is for security. JavaScript can present a security risk because it’s code a computer executes. This process can be compromised and used as a means to infect a computer.
You may also want to disable JavaScript because it’s malfunctioning on a site and causing problems with the browser. Malfunctioning JavaScript could prevent a page from loading or cause the browser to crash. Disabling JavaScript may allow you to view content on a page, only without the added functionality it usually provides.
Finally, if you administer a website, you may need to disable JavaScript to troubleshoot issues. For example, if you use a content management tool like WordPress, JavaScript code or a plug-in using JavaScript might require you to disable it to identify and fix the problem.
How to enable or disable JavaScript in a browser
Today, nearly all Internet browsers have JavaScript installed and enabled by default. Many features of a website are enhanced or made possible by JavaScript programs that run in your browser. Consequently, if you disable JavaScript, certain websites may not function as intended. To learn how to enable (unblock) or disable (block) JavaScript, select your browser from the list below and follow the steps.
Java and JavaScript are different. If you need information about Java or any of its versions, see our Java definition.
To check if JavaScript is currently enabled, see our JavaScript definition for an example script that runs in a JavaScript-enabled browser.
Google Chrome
To enable or disable JavaScript in Google Chrome, follow these steps.
- Open Google Chrome.
- In the upper-right of the Chrome window, click the icon.
- Select Settings from the drop-down menu.
- On the Site Settings page, scroll to the bottom of the screen. Under the Content section, click the JavaScript option.
- Under Default behavior, click the Sites can use Javascript radio button to enable JavaScript, or click the Don’t allow sites to use Javascript radio button to disable JavaScript.
Allow or block JavaScript on specific websites
In the Allow or Block section, click the button. Then, type or paste the URL (uniform resource locator) of the website that you want to allow or block JavaScript.
Mozilla Firefox
To enable or disable JavaScript in Firefox, follow these steps.
- For the javascript.enabled search result, click the Toggle icon on the far right. The true value changes to false to indicate JavaScript is disabled.
- To re-enable JavaScript, repeat these steps, changing false to true.
Microsoft Edge
To enable or disable JavaScript in Edge, follow these steps.
- Open Microsoft Edge.
- In the upper-right corner of the screen, click the icon.
- At the bottom of the Settings and more menu, select Settings.
- On the left side of the screen, select Cookies and site permissions.
- Under the Site permissions section, click the box labeled JavaScript.
- On the Site permissions / JavaScript screen, use the toggle switch to enable and disable JavaScript.
Microsoft Edge Legacy
By default, JavaScript is enabled in the Microsoft Edge Legacy browser. The Creators Update for Windows 10 removed the ability to manually enable or disable JavaScript.
Internet Explorer
To enable or disable JavaScript in Internet Explorer, follow these steps.
- Open Internet Explorer.
- Click Tools in the upper-right corner of the browser window.
- Select Internet Options from the drop-down menu that appears.
- In the Internet Options window, click the Securitytab.
- In the Security tab, click Custom Levelbutton.
- Scroll down the list (close to the bottom) and locate Active Scripting. Select Disable, Enable, or Prompt to adjust your JavaScript settings.
Android phone & tablet
To enable or disable JavaScript on an Android mobile device, you need to access the browser settings. As there are many different browsers on Android devices, you may need to use some intuition to access the settings. The following instructions are for Google Chrome.
- Open Google Chrome.
- In the upper-right corner, click the icon.
- On the drop-down menu that appears, tap the Settings option.
- Under the Advanced section, tap Site settings.
- Tap JavaScript.
- Move the slider to toggle JavaScript on or off.
Safari (macOS)
To enable or disable JavaScript in Safari on an iMac or MacBook, follow these steps.
- Open Safari.
- In the menu bar, click the selector and choose Preferences.
- Click the Security tab at the top of the Advanced window.
- On the Security tab, next to Web content, click the check box next to Enable JavaScript box to toggle it on or off.
Safari (iPhone & iPad)
To enable or disable JavaScript in Safari for iOS or iPadOS, follow these steps.
- Tap the Settings icon on the home screen.
- On the Settings screen, scroll down and tap Safari.
- On the Safari screen, scroll down to the bottom and tap the Advanced option.
- On the Advanced screen, tap the toggle to the on position to enable JavaScript or the off position to disable JavaScript.
Opera
To enable or disable JavaScript in the Opera browser, follow these steps.
- Open Opera.
- Click Customize and control Opera in the upper-left corner of the browser window.
- Select Settings from the drop-down menu that appears.
- On the Site Settings page, under the Content section, click the JavaScript option.
- In the Default behavior section, click the circle next to Sites can use Javascript to turn it on or Don’t allow sites to use Javascript to turn it off.
Related information
- How to enable or disable hardware acceleration in a browser.
- How to disable animated pictures in Internet browsers.
- Use the System information script to determine if JavaScript is enabled or disabled.
- See the Java and JavaScript definitions for further information and related links.
- Internet browser help and support.
Your browser is currently set to block JavaScript
When logged on to an Exchange server, ready for starting the Hybrid Configuration Wizard, you try to logon to Exchange Online you end up with a warning (or ‘error’) message:
Your browser is currently set to block JavaScript. You need to allow JavaScript to use this service.
To learn how to allow JavaScript or to find out whether your browser supports JavaScript, check the online help in your web browser.
Like the screenshot below:
To enable JavaScript on your computer you have to enable Active Scripting. To do so, go to Internet Options, select the Security tab and choose Custom Level.
Now scroll all the way down (or press page down 12 times ) and enable Active Scripting:
You will get a warning message “Are you sure you want to change the settings for this zone”, click Yes and click OK.
Restart your Internet Explorer browser and you can login on Exchange Online and continue with the Hybrid Configuration Wizard (or whatever you were trying to achieve).