Introduction to JavaScript

JavaScript enables you to embed commands in an XHTML page. When a compatible Web browser, primarily Netscape Navigator 2 or higher or Internet Explorer 3 or higher (the Opera browser also includes JavaScript support with its version 3 and higher), downloads the page, your JavaScript commands are loaded by the Web browser as a part of the XHTML document. These commands can be triggered when the user clicks page items, manipulates gadgets and fields in an XHTML form, moves through the page history list, or through a variety of other Web browser events.


Microsoft's Internet Explorer Web browser supports JScript, Microsoft's own implementation of Netscape's JavaScript language. Both Microsoft and Netscape claim full ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.