How do I enable or disable JavaScript in my browser?

Updated: 04/26/2017 by Computer Hope

JavaScript or JS logoToday, all Internet browsers have JavaScript installed and enabled by default. Keep in mind that many features on web pages are JavaScript dependent and will not work properly if it is disabled. Additionally, JavaScript should not be confused with Java, which is a programming language used to create applications. This document is for toggling JavaScript, not Java. To proceed, select your browser from the list below and follow the instructions.

Tip: To test whether or not JavaScript is enabled, see the JavaScript definition for a working example.

Microsoft Edge users

ChromeMicrosoft Edge is different from other browsers in that it requires you to disable JavaScript through Windows 10, rather than the browser.

  1. Press the Windows key, type Edit group policy, and then press Enter.
  2. Expand the Computer Configuration section by clicking the arrow next to it.
  3. Then expand the Administrative Templates section.
  4. And finally, expand the Windows Components section.
  5. Double-click on the Microsoft Edge folder.
  6. Double-click Allows you to run scripts, like JavaScript.
  7. In the window what appears, select Disabled, and click OK.

Internet Explorer

Internet ExplorerTo enable or disable JavaScript in Internet Explorer, follow the steps below.

  1. Open the Internet Explorer browser.
  2. Click Tools IE tools in the upper right-hand corner of the browser window.
  3. Select Internet Options from the drop-down menu that appears.
  4. Within Internet Options window, click the Security tab.
  5. In the Security tab, click Custom Level... button.
  6. Scroll down the list (close to the bottom) and locate Active Scripting. Select Disable, Enable, or Prompt to adjust your JavaScript settings.

Google Chrome

Google ChromeTo enable or disable JavaScript in Google Chrome, follow the steps below.

  1. Open the Chrome browser.
  2. Click Customize and control Google Chrome Chrome settings in the upper right-hand corner of the browser window.
  3. Select Settings from the drop-down menu that appears.
  4. At the bottom of Settings window, click Show advanced settings...
  5. In the Privacy section, click the Content settings button button.
  6. Under the JavaScript section, choose the appropriate settings for your needs. You may enable, disable, or set specific rules by clicking the Manage exceptions button - Chrome button.
  7. Once you have made your changes, click Done.

Mozilla Firefox

FirefoxTo enable or disable JavaScript in Mozilla Firefox, follow the steps below.

  1. Open the Firefox browser.
  2. In the address bar, type about:config and press Enter.
  3. Click the I accept the risk button in the center of the screen.
  4. In the search bar, type javascript.enabled.
  5. Right-click the result named javascript.enabled located just below the search bar and select Toggle.
  6. JavaScript is now disabled. To re-enable it, repeat this exact process.

Safari

SafariTo enable or disable JavaScript in Safari, follow the steps below.

  1. Open the Safari browser.
  2. Click Menu Safari menu in the upper right-hand corner of the browser window.
  3. Select Preferences from the drop-down menu that appears.
  4. Click the Security tab and locate the Web content: section.
  5. The check box next to Enable JavaScript toggles whether or not it is on or off.

Opera

OperaTo enable or disable JavaScript in Opera, follow the steps below.

  1. Open the Opera browser.
  2. Click Customize and control Opera Opera Menu button in the upper left-hand corner of the browser window.
  3. SelectOpera settings icon Settings from the drop-down menu that appears.
  4. Click Websites in the settings window that appears.
  5. Under the JavaScript section, choose the appropriate settings for your needs. You may enable, disable, or set specific rules by clicking the Manage exceptions button - Opera button.

Android Phone & Tablet users

To enable or disable JavaScript on an Android phone or tablet, follow the steps below.

  1. Access the full Apps list on the Android phone.
  2. Tap the Browser icon.
  3. Tap the menu button to open the browser menu, then tap the Settings option.
  4. Tap the Advanced option in the Settings menu.
  5. Check the box for Enable JavaScript to enable JavaScript or uncheck the box to disable JavaScript.

iPhone & iPad users

To enable or disable JavaScript on an iPhone or iPad, follow the steps below.

  1. Tap the Settings icon on the home screen.
  2. On the Settings screen, scroll down, find and tap the Safari option.
  3. On the Safari screen, scroll down to the bottom and tap the Advanced option.
  4. On the Advanced screen, slide the JavaScript settings to the right to enable JavaScript or slide the setting to the left to disable JavaScript.

Additional information