faqts : Computers : Programming : Languages : JavaScript : Browser Settings

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

41 of 51 people (80%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Which version of JScript is supported in which IE version?
Which version of JavaScript is supported in which IE version?

Oct 11th, 2000 14:34
Henrik Gemal, Martin Honnen,


MS clearly distinguishes between the core JScript version/engine and 
the browser DOM (document object model). While the DOM support has 
grown from IE version to IE version and is documented at
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtmlrefs.asp
the core JScript version depends on the JScript engine installed on the 
client and this engine can be updated independently of the IE version. 
So I think you can encounter IE3 with the most up to date JScript 
engine.
The following JScript checks the JScript engine version:

if (navigator.appName.indexOf('Microsoft') != -1)
  alert('Script engine: ' + ScriptEngine() + '\n'
         + 'JScript major version: ' + ScriptEngineMajorVersion() + '\n'
         + 'JScript minor version: ' + ScriptEngineMinorVersion())

The comparsion to the Netscape JavaScript versioning is rather 
difficult. You can however run
  <SCRIPT LANGUAGE="JavaScript1.1">
  <SCRIPT LANGUAGE="JavaScript1.2">
  <SCRIPT LANGUAGE="JavaScript1.3">
SCRIPT blocks in IE4 and IE5. 

Main differences are in the DOM, core JavaScript objects (like numbers, 
strings, boolean, Objects, Arrays, Dates, Math) behave rather compliant.


Check your JavaScript version:
http://gemal.dk/browserspy/js.html

Check your JScript/VBScript version:
http://gemal.dk/browserspy/vbscript.html