比较修订
JavaScript settings and preferences for interactive web pages
修订版本 72864:
由user669794于提交的修订 72864
修订版本 88211:
由AliceWyman于提交的修订 88211
关键词:
java script
java script
搜索结果概要:
This article describes what JavaScript is and how to allow or block it on certain websites.
This article describes what JavaScript is and how to allow or block it on certain websites.
内容:
{for not fx23}
This article describes what JavaScript® is, how to turn it on and off, what JavaScript® settings are available in Firefox and how to allow or block it on certain websites.
{/for}
{for fx23}
This article describes what JavaScript® is and how to allow or block it on certain websites.
{/for}
__TOC__
= What is JavaScript? =
[http://en.wikipedia.org/wiki/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.
{for not fx23}
= 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:
# [[T:optionspreferences]]
# In the {for win}Options{/for}{for mac,linux}Preferences{/for} window, select the {menu Content} panel.
## '''Enable JavaScript:''' Select this option to permit JavaScripts to execute on your computer.
## To change advanced settings, click {button Advanced…}. {for win,linux}<br/> <br/> [[Image:668a9022f052f20f795759846994bc3f-1260050698-426-1.png]]<br/> <br/> {/for}{for mac}<br/> <br/> [[Image:javascript-en-mac-1.jpg]]<br/> <br/> {/for}
# [[T:closeOptionsPreferences]]
= Advanced JavaScript settings =
Through the Advanced JavaScript Settings window, you can configure the permissions for JavaScript. {for win}<br/> <br/> [[Image:JavaScript - Win2]]{/for}
* '''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.
{/for}
= 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 install [https://addons.mozilla.org/firefox/search/?tag=privacy privacy extensions] such as:
* [https://addons.mozilla.org/firefox/addon/noscript NoScript]: allows JavaScript and other content to run only on websites of your choice.
* [https://addons.mozilla.org/firefox/addon/ghostery Ghostery]: allows you to block scripts from companies that you don't trust.
{for not fx23}
<!-- MZ credit -->
<br/> <br/>
'''''Based on information from [http://kb.mozillazine.org/JavaScript JavaScript (mozillaZine KB)]'''''
{/for}
<sub>JavaScript is a trademark or registered trademark of [http://www.oracle.com/us/sun/index.htm Sun Microsystems, Inc.] in the U.S. and other countries.
{for not fx23}
This article describes what JavaScript® is, how to turn it on and off, what JavaScript® settings are available in Firefox and how to allow or block it on certain websites.
{/for}
{for fx23}
This article describes what JavaScript® is and how to allow or block it on certain websites.
{/for}
__TOC__
= What is JavaScript? =
[http://en.wikipedia.org/wiki/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.
{for not fx23}
= 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:
# [[T:optionspreferences]]
# In the {for win}Options{/for}{for mac,linux}Preferences{/for} window, select the {menu Content} panel.
## '''Enable JavaScript:''' Select this option to permit JavaScripts to execute on your computer.
## To change advanced settings, click {button Advanced…}. {for win,linux}<br/> <br/> [[Image:668a9022f052f20f795759846994bc3f-1260050698-426-1.png]]<br/> <br/> {/for}{for mac}<br/> <br/> [[Image:javascript-en-mac-1.jpg]]<br/> <br/> {/for}
# [[T:closeOptionsPreferences]]
= Advanced JavaScript settings =
Through the Advanced JavaScript Settings window, you can configure the permissions for JavaScript. {for win}<br/> <br/> [[Image:JavaScript - Win2]]{/for}
* '''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.
{/for}
= 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 install [https://addons.mozilla.org/firefox/search/?tag=privacy privacy extensions] such as:
* [https://addons.mozilla.org/firefox/addon/noscript NoScript]: allows JavaScript and other content to run only on websites of your choice.
* [https://addons.mozilla.org/firefox/addon/ghostery Ghostery]: allows you to block scripts from companies that you don't trust.
{for win8}
{note} Note: Some websites use JavaScript for functions such as menus that drop down "on hover", which may not work in Firefox on touch-screen computers. One possible solution is to enter '''about:config''' in the Firefox address bar, find the preference {pref dom.w3c_touch_events.enabled} and double-click on it, then enter a value of {pref 0} (zero) and then close and restart Firefox.
A second 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 second solution will effectively change the touch screen into a plain screen while disabled.{/note}
{/for}
{for not fx23}
<!-- MZ credit -->
<br/> <br/>
'''''Based on information from [http://kb.mozillazine.org/JavaScript JavaScript (mozillaZine KB)]'''''
{/for}
<sub>JavaScript is a trademark or registered trademark of [http://www.oracle.com/us/sun/index.htm Sun Microsystems, Inc.] in the U.S. and other countries.