ScriptEngineMajorVersion Function (JScript 8.0)
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

ScriptEngineMajorVersion Function (JScript 8.0) 

Returns the major version number of the scripting engine in use.

function ScriptEngineMajorVersion() : int

The return value corresponds directly to the version information contained in the dynamic-link library (DLL) for the scripting language in use.

The following example illustrates the use of the ScriptEngineMajorVersion function:

function GetScriptEngineInfo(){
   var s;
   s = ""; // Build string with necessary info.
   s += ScriptEngine() + " Version ";
   s += ScriptEngineMajorVersion() + ".";
   s += ScriptEngineMinorVersion() + ".";
   s += ScriptEngineBuildVersion();
© 2016 Microsoft