scriptEngineMajorVersion()

This function is used to return the 'major' version number of the scripting engine. The major number is the number before the decimal in the version number. For example, in the returned value of IE 4.5, the major version number is the '4.'. This is useful when wanting to redirect users of a specific script engine build to a page which supports that build or has workarounds for any flaws.

syntax:

scriptEngineMajorVersion()

EXAMPLE

document.write(The Scripting Engine Minor Version is: " + scriptEngineMajorVersion() );

This example writes to the screen the words within the document.write call to the scriptEngineMajorVersion() method.