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.

Note

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.