Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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?

irt.org | Knowledge Base | JavaScript | General | Q387 [ previous next ]

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?

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.