Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q387 On which browsers and versions will JavaScript work correctly, and how do I restrict the running of JavaScript based on the JavaScript version the browser supports?

You are here: irt.org | FAQ | JavaScript | General | Q387 [ previous next ]

None of them :)

The following lists which browsers support which version of JavaScript:

Netscape Navigator 1 - no JavaScript support
Netscape Navigator 2 - JavaScript 1
Netscape Navigator 3 - JavaScript 1.1
Netscape Navigator 4 - JavaScript 1.2
Netscape Navigator 4.05 - JavaScript 1.3

Internet Explorer 1 - no JavaScript support (was there a Internet Explorer 1?)
Internet Explorer 2 - no JavaScript support
Internet Explorer 3.x - partial JavaScript 1 support, also depending on the platform used.
Internet Explorer 4 - partial JavaScript 1.1 support

Opera ?.? - problematic at best.

The following describes how to code our scripts so as to avoid an older browser attempting to interpret a higher version of JavaScript:

<script language="JavaScript"><!--
// will run on any JavaScript enabled browser
//--></script>

<script language="JavaScript1.1"><!--
// will only run on any JavaScript1.1+ enabled browser
//--></script>

<script language="JavaScript1.2"><!--
// will only run on any JavaScript1.2+ enabled browser
//--></script>

<script language="JavaScript1.3"><!--
// will only run on any JavaScript1.3+ enabled browser
//--></script>

©2018 Martin Webb