JavaScript: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (category)
(Mozilla Suite section added)
Line 1: Line 1:
[[wikipedia:JavaScript | JavaScript]] is a programming language supported by many browsers which allows web page authors to have greater control over the user’s browsing experience. JavaScript is often used to create fly-out menus, invoke pop-up windows, validate form data and so on.
[[wikipedia:JavaScript | JavaScript]] is a programming language supported by many browsers which allows web page authors to have greater control over the user’s browsing experience. JavaScript is often used to create fly-out menus, invoke pop-up windows, validate form data and so on. Please note that [[JavaScript is not Java]]!


Please note that [[JavaScript is not Java]]!
Any errors that may occur when the browser tries to run JavaScript will appear in the [[JavaScript Console]].


==JavaScript is not working==
==JavaScript is not working==
Ensure you have enabled Javascript in your application. In [[Firefox]] 1.0.x, you can do this via "Web Features (→ Enable JavaScript)" in [[Menu differences in Windows, Linux, and Mac | Options]]. In Firefox 1.5 and above, this option is under "Content (→ Enable JavaScript)" in Options.
To ensure that JavaScript is enabled, check these settings:
 
====Firefox====
*"[[Menu differences in Windows, Linux, and Mac | Options]] → Content → Enable JavaScript" (in previous Firefox 1.0.x versions, under "Web Features → Enable JavaScript").
 
====Mozilla suite====
The setting to enable JavaScript for pages opened in the Mozilla Suite Navigator (web browser) component is under:
*"Edit → Preferences → Advanced → Scripts & Plug-ins → Enable JavaScript for → Navigator 
Note: The setting to enable JavaScript for the "Mail & Newsgroups" component is disabled by default, for security reasons.


Any errors that may occur when the browser tries to run JavaScript will appear in the [[JavaScript Console]].


[[Category:Page display]]
[[Category:Page display]]
[[Category:General concepts]]
[[Category:General concepts]]

Revision as of 21:27, 1 January 2006

JavaScript is a programming language supported by many browsers which allows web page authors to have greater control over the user’s browsing experience. JavaScript is often used to create fly-out menus, invoke pop-up windows, validate form data and so on. Please note that JavaScript is not Java!

Any errors that may occur when the browser tries to run JavaScript will appear in the JavaScript Console.

JavaScript is not working

To ensure that JavaScript is enabled, check these settings:

Firefox

  • " Options → Content → Enable JavaScript" (in previous Firefox 1.0.x versions, under "Web Features → Enable JavaScript").

Mozilla suite

The setting to enable JavaScript for pages opened in the Mozilla Suite Navigator (web browser) component is under:

  • "Edit → Preferences → Advanced → Scripts & Plug-ins → Enable JavaScript for → Navigator

Note: The setting to enable JavaScript for the "Mail & Newsgroups" component is disabled by default, for security reasons.