JavaScript settings and preferences for interactive web pages

Revision Information
  • Revision id: 42189
  • Created:
  • Creator: scoobidiver
  • Comment: JavaScript removed in Fx23 (bug 851702), simplified, privacy extension section
  • Reviewed: No
  • Ready for localization: No
Revision Source
Revision Content

This article describes what JavaScript is, how to turn it on and off, what JavaScript settings are available in Firefox and how to allow and block it on certain domains.

This article describes what JavaScript is and how to allow and block it on certain domains.

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.

Enable and disable JavaScript

In Firefox, you can configure whether JavaScript in web pages is permitted to execute or not. To allow JavaScript in Firefox:

  1. At the top of the Firefox window, click on the Firefox button and then select Options.At the top of the Firefox window, click on the Tools menu and then select Options.On the menu bar, click on the Firefox menu and select Preferences....At the top of the Firefox window, click on the Edit menu and select Preferences.

    Click the menu button New Fx Menu and choose Options.Preferences.

  2. In the OptionsPreferences window, select the Content panel.
    1. Enable JavaScript: Select this option to permit JavaScripts to execute on your computer.
    2. To change advanced settings, click Advanced….

      668a9022f052f20f795759846994bc3f-1260050698-426-1.png



      javascript-en-mac-1.jpg

  3. Click OK to close the Options window.Click Close to close the Preferences window.Close the Preferences window. Close the about:preferences page. Any changes you've made will automatically be saved.

Advanced JavaScript settings

Through the Advanced JavaScript Settings window, you can configure the permissions for JavaScript.

JavaScript - Win2

  • Move or resize existing windows: To prevent JavaScripts from changing the position or size of existing windows, deselect this option.
  • Raise or lower windows: This option allows sites to place windows below or above existing windows.
  • Disable or replace context menus: When you right-click an item, a sub-menu may appear. This menu, called a "context menu," can be disabled through JavaScripts. To prevent them from disabling context menus, deselect this option.

Allow and block JavaScript on certain domains

JavaScript can be used to do things that some users find undesirable. For a better control, you can install privacy extensions such as:

  • NoScript that allows JavaScript and other executable content to run only on trusted domains of your choice
  • Ghostery that allows you to block scripts from companies that you don't trust amongst other things.



Based on information from JavaScript (mozillaZine KB)