How do I enable or disable JavaScript in my browser?

Updated: 12/09/2018 by Computer Hope

JavaScript or JS logoToday, 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. If you disable JavaScript, websites may not function as intended. To enable or disable JavaScript, select your browser from the following list for the appropriate instructions.

Tip: If you want to check if JavaScript is enabled, see our JavaScript definition for an example program that will run in a JavaScript-enabled browser.

Chrome

Microsoft Edge users

The Creators update for Windows 10 removed the ability to enable or disable JavaScript in the Microsoft Edge browser. In general, Java is also not supported in the Edge browser.

Internet Explorer

Internet Explorer

To 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 corner of the browser window.
  3. Select Internet Options from the drop-down menu that appears.
  4. In the 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 Chrome

To 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 corner of the browser window.
  3. Select Settings from the drop-down menu that appears.
  4. At the bottom of the 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.
Firefox

Mozilla Firefox

To 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

Safari

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

  1. Open the Safari browser.
  2. Click Menu Safari menu in the upper-right 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 checkbox next to Enable JavaScript toggles whether or not it is on or off.
Opera

Opera

To 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 corner of the browser window.
  3. Select 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, you'll need to enter the browser settings. Unfortunately, there are many different browsers on Android devices. The following instructions are for Google Chrome.

  1. Open the Google Chrome Internet browser.
  2. In the upper-right corner, click the The menu icon on Google Chrome mobile. icon.
  3. On the drop-down menu that appears, tap the Settings option.
  4. Under the Advanced section, tap Site settings.
  5. Tap JavaScript.
  6. Move the slider The toggle button in Google Chrome. to toggle JavaScript on or off.

iPhone & iPad users

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

  1. Tap the Settings The settings icon on iOS. icon on the home screen.
  2. On the Settings screen, scroll down, and tap Safari.
  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