Chapter 5. JavaScript Core Language Reference

The previous chapters in the reference part of the book have covered every aspect of Dynamic HTML authoring that affects elements, objects, and styles—the pieces that are often visible on the page. The one part yet to be covered is the scripting glue that makes it possible to access and control the items detailed up to this point—the “D” of DHTML. This chapter covers the core scripting language features that apply to cross-browser application development. This means that VBScript, ActiveX controls, and Java classes accessible through LiveConnect are intentionally omitted here in favor of the core language that is widely deployed in every scriptable browser.

As described in Online Section I, the JavaScript language was a Netscape invention. Microsoft’s version of the language is called JScript. But a browser-neutral version of the language has been approved as a common denominator standard for all JavaScript-derived languages: ECMAScript. There is a great deal of agreement in the implementation of the core elements of this scripting language among browser makers and the ECMA standards group. The biggest challenge for writing core language code (i.e., code that is independent of the scriptable document object model) is knowing what version of the language is supported by which versions of the browser. In the entries for this chapter, you can see at a glance which browser version first supported each core language object, property, method, ...

Get Dynamic HTML: The Definitive Reference, 3rd Edition 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.