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>