JavaScript Tutorial/MS JScript/Scripting Engine Version

Материал из Web эксперт
Перейти к: навигация, поиск

JScript"s Elements for Determining Scripting Engine Version Information (IE)

<html>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    var jscriptVer = ScriptEngine() + " " + ScriptEngineMajorVersion() + "." +
                     ScriptEngineMinorVersion() + " Build " +
                     ScriptEngineBuildVersion();
    document.write("<b>You are running:</b> " + jscriptVer);
    document.write("<br><br><b>ScriptEngine:</b> " + ScriptEngine());
    document.write("<br><b>ScriptEngineMajorVersion:</b> ");
    document.write(ScriptEngineMajorVersion());
    document.write("<br><b>ScriptEngineMinorVersion:</b> ");
    document.write(ScriptEngineMinorVersion());
    document.write("<br><b>ScriptEngineBuildVersion:</b> ");
    document.write(ScriptEngineBuildVersion());
    -->
</SCRIPT>
</html>