Objects and Browsers

One thing that always seems to come as a surprise to the budding JavaScripter is that not all browsers support the same objects. Mostly this is because the various browser manufacturers each want to add their own proprietary things to the JavaScript standard they include with their browsers. However, thanks mainly to the ECMAScript standard and partially to the common origin of both Microsoft's JScript and Netscape Navigator's JavaScript, most of the objects are available in both browsers.

As an example, take a look at the following. The ECMAScript standard contains the following objects:

  • Array— Enables the creation of a new array

  • Boolean— Creates a new Boolean value

  • Date— Enables basic storage and retrieval of dates and times ...

Get JavaScript™ 1.5 by Example 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.