Datasheet

Chapter 1: What Is JavaScript?
10
Primarily, the BOM deals with the browser window and frames, but generally any browser - specific
extension to JavaScript is considered to be a part of the BOM. The following are some such extensions:
The capability to pop up new browser windows
The capability to move, resize, and close browser windows
The
navigator object, which provides detailed information about the browser
The
location object, which gives detailed information about the page loaded in the browser
The
screen object, which gives detailed information about the user s screen resolution
Support for cookies
Custom objects such as
XMLHttpRequest and Internet Explorer ’ s ActiveXObject
Because no standards exist for the BOM, each browser has its own implementation. There are some de
facto standards, such as having a
window object and a navigator object, but each browser defines its
own properties and methods for these and other objects. A detailed discussion of the BOM is included in
Chapter 8 .
JavaScript Versions
Mozilla, as a descendant from the original Netscape, is the only browser vendor that has continued
the original JavaScript version - numbering sequence. When the Netscape source code was spun off
into an open - source project (named the Mozilla Project), the last browser version of JavaScript was 1.3.
(As mentioned previously, version 1.4 was implemented on the server exclusively.) As the Mozilla
Foundation continued work on JavaScript, adding new features, keywords, and syntaxes, the JavaScript
version number was incremented. The following table shows the JavaScript version progression in
Netscape/Mozilla browsers:
Browser JavaScript Version
Netscape Navigator 2 1.0
Netscape Navigator 3 1.1
Netscape Navigator 4 1.2
Netscape Navigator 4.06 1.3
Netscape 6+ (Mozilla 0.6.0+) 1.5
Firefox 1 1.5
Firefox 1.5 1.6
Firefox 2 1.7
Firefox 3 1.8
Firefox 3.1 1.9
Firefox 4 2.0
c01.indd 10c01.indd 10 12/8/08 11:21:52 AM12/8/08 11:21:52 AM