- JavaScript settings and preferences for interactive web pages
- Table of Contents
- What is JavaScript?
- Allow and block JavaScript on certain domains
- Websites ask you to enable JavaScript
- For advanced users
- Volunteer
- How to enable JavaScript in Windows
- More Information
- Internet Explorer
- Google Chrome
- Mozilla Corporation’s Firefox
- How to enable JavaScript in Windows
- More Information
- Internet Explorer
- Google Chrome
- Mozilla Corporation’s Firefox
- 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
JavaScript settings and preferences for interactive web pages
This article describes what JavaScript® is and how to allow or block it on certain websites.
Table of Contents
What is JavaScript?
JavaScript is a standard programming language that can be included in web pages to provide functionality such as menus, sounds, and other interactive features. By default, Firefox enables the use of JavaScript and requires no additional installation.
Allow and block JavaScript on certain domains
JavaScript can be used to do things that some people don’t like. For better control, you can find and install JavaScript extensions or privacy extensions that let you disable JavaScript, such as these add-ons:
- NoScript: allows JavaScript and other content to run only on websites of your choice.
- Ghostery: allows you to block scripts from companies that you don’t trust.
Note: Some websites use JavaScript for functions such as «on hover» drop-down menus, which may not work in Firefox on touch-screen computers. A solution is to disable the «HID-compliant touch screen» setting in Windows Device Manager (visit a Windows forum if you need more help); however, this solution will effectively change the touch screen into a plain screen while disabled.
Websites ask you to enable JavaScript
Websites may tell you that JavaScript is required or ask you to make sure that JavaScript is enabled, even though you don’t want JavaScript to be blocked. Turn off any settings to disable JavaScript in your installed extensions or try disabling your extensions to see if you can find the problem. You should contact the developer or visit the website for the add-on, to get help with a specific extension.
For advanced users
Warning: Changing advanced preferences can affect Firefox’s stability and security. This is recommended for advanced users only.
JavaScript may be disabled for all websites in Advanced Preferences (about:config page). You can confirm that JavaScript is enabled or reset the preference as follows:
- Type about:config in the address bar and press Enter Return .
A warning page may appear. Click Accept the Risk and Continue to go to the about:config page. - Find the javascript.enabled preference. It should be set to true by default.
- If javascript.enabled is set to false , click the Toggle or Reset button to set it back to true .
JavaScript is a trademark or registered trademark of Oracle Corporation in the U.S. and other countries.
These fine people helped write this article:
Volunteer
Grow and share your expertise with others. Answer questions and improve our knowledge base.
How to enable JavaScript in Windows
Many Internet Web sites contain JavaScript, a scripting programming language that runs on the web browser to make specific features on the web page functional. If JavaScript has been disabled within your browser, the content or the functionality of the web page can be limited or unavailable. This article describes the steps for enabling JavaScript in web browsers.
More Information
Internet Explorer
To allow all websites within the Internet zone to run scripts within Internet Explorer:
- On the web browser menu, click Tools or the «Tools» icon (which looks like a gear), and select Internet Options.
- When the «Internet Options» window opens, select the Security tab.
- On the «Security» tab, make sure the Internet zone is selected, and then click on the «Custom level. » button.
- In the Security Settings – Internet Zone dialog box, click Enable for Active Scripting in the Scripting section.
- When the «Warning!» window opens and asks, «Are you sure you want to change the settings for this zone?» select Yes.
- Click OK at the bottom of the Internet Options window to close the dialog.
- Click the Refresh button to refresh the page and run scripts.
To allow scripting on a specific website, while leaving scripting disabled in the Internet zone, add the specific Web site to the Trusted sites zone:
- On the web browser menu, click Tools, or the «Tools» icon (which looks like a gear) and select Internet Options.
- When the «Internet Options» window opens, select the Security tab.
- On the «Security» tab, select the Trusted sites zone and then click the Sites button.
- For the website(s) you would like to allow scripting, enter the address within the Add this website to the zone text box and click Add. Note: If the address does not begin with «https:», you many need to uncheck «Require server verification (https:) for all sites in this zone».
- Click Close and then click OK at the bottom of the Internet Options window to close the dialog.
- Click the Refresh button to refresh the page and run scripts.
Google Chrome
To enable JavaScript in Google Chrome, please review and follow the instructions provided at Enable JavaScript in your browser to see ads on your site.
Mozilla Corporation’s Firefox
To enable JavaScript in Firefox, please review and follow the instructions provided at JavaScript settings for interactive web pages.
How to enable JavaScript in Windows
Many Internet Web sites contain JavaScript, a scripting programming language that runs on the web browser to make specific features on the web page functional. If JavaScript has been disabled within your browser, the content or the functionality of the web page can be limited or unavailable. This article describes the steps for enabling JavaScript in web browsers.
More Information
Internet Explorer
To allow all websites within the Internet zone to run scripts within Internet Explorer:
- On the web browser menu, click Tools or the «Tools» icon (which looks like a gear), and select Internet Options.
- When the «Internet Options» window opens, select the Security tab.
- On the «Security» tab, make sure the Internet zone is selected, and then click on the «Custom level. » button.
- In the Security Settings – Internet Zone dialog box, click Enable for Active Scripting in the Scripting section.
- When the «Warning!» window opens and asks, «Are you sure you want to change the settings for this zone?» select Yes.
- Click OK at the bottom of the Internet Options window to close the dialog.
- Click the Refresh button to refresh the page and run scripts.
To allow scripting on a specific website, while leaving scripting disabled in the Internet zone, add the specific Web site to the Trusted sites zone:
- On the web browser menu, click Tools, or the «Tools» icon (which looks like a gear) and select Internet Options.
- When the «Internet Options» window opens, select the Security tab.
- On the «Security» tab, select the Trusted sites zone and then click the Sites button.
- For the website(s) you would like to allow scripting, enter the address within the Add this website to the zone text box and click Add. Note: If the address does not begin with «https:», you many need to uncheck «Require server verification (https:) for all sites in this zone».
- Click Close and then click OK at the bottom of the Internet Options window to close the dialog.
- Click the Refresh button to refresh the page and run scripts.
Google Chrome
To enable JavaScript in Google Chrome, please review and follow the instructions provided at Enable JavaScript in your browser to see ads on your site.
Mozilla Corporation’s Firefox
To enable JavaScript in Firefox, please review and follow the instructions provided at JavaScript settings for interactive web pages.
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.