Browser Compatibility

As noted earlier, varying levels of JavaScript support have been built into browsers since Netscape 2.0. The following table, by Nick Heinle, shows which browsers support which JavaScript objects. For an online version of the table, see http://webcoder.com/reference/2/index.html.

JavaScript Features

Nav 2

Nav 3

Nav 4

IE 3

IE 4

Applets

No

Yes

Yes

Yes[a]

Yes[a]

Areas

No

Yes

Yes

No

Yes

Array

No

Yes

Yes

Yes

Yes

CSS

No

No

Yes[b]

No

Yes

Cookie

Yes

Yes

Yes

Yes[c]

Yes

Date

Yes

Yes

Yes

Yes

Yes

Event

No

No

Yes[d]

No

Yes[d]

External scripts

No

Yes

Yes

No[e]

Yes

Forms

Yes[f]

Yes

Yes

Yes[c] [f]

Yes

Frames

Yes

Yes

Yes

Yes

Yes

History

Yes

Yes

Yes

Yes[c]

Yes

Images

No

Yes

Yes

No[g]

Yes

JavaEnabled

No

Yes

Yes

No

Yes

Links

Yes

Yes

Yes

Yes

Yes

Location

Yes[h]

Yes

Yes

Yes[c] [h]

Yes

Math

Yes

Yes

Yes

Yes

Yes

Navigator

Yes

Yes

Yes

Yes

Yes

MimeTypes

No

Yes

Yes

No

No

Options

No

Yes

Yes

No

No

String

Yes

Yes

Yes

Yes

Yes

Window

Yes[i],[j]

Yes[j]

Yes

Yes[c] [i] [j]

Yes[j]

Write

Yes[c]

Yes[c]

Yes

Yes

Yes

[a] Allows access to ActiveX too, but no Java API calls.

[b] Navigator only allows predisplay control, except with positioning.

[c] Implementation is buggy or incomplete: see the bugs table at http://webcoder.com/reference/2/index.html.

[d] The event model is improved, but it’s different in IE and Navigator.

[e] External scripts are supported ...

Get Web Design in a Nutshell 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.