JavaScript

From MozillaZine Knowledge Base
Revision as of 08:19, 13 September 2005 by Mozcerize (talk | contribs) (tidy section on scripting of Java applets)
Jump to navigationJump to search

What is 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!

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 Options. In Firefox 1.5 and above, this option is under "Content (→ Enable JavaScript)" in Options.

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

Scripting of Java applets

Developers should note that Firefox does not allow scripts to access public methods in Java applets.