Skip to content

Instantly share code, notes, and snippets.

@hideaki-t
Created December 18, 2011 02:28
Show Gist options
  • Save hideaki-t/1492171 to your computer and use it in GitHub Desktop.
Save hideaki-t/1492171 to your computer and use it in GitHub Desktop.
check JScript engine version and functionality in HTA environment
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=8 ; IE=9" />
<title>chcek JavaScript engine version</title>
</head>
<body>
</body>
<script>
var s = "{" +
"\"engine\": \"" + ScriptEngine() + "\"," +
"\"major\": \"" + ScriptEngineMajorVersion() + "\"," +
"\"minor\": \"" + ScriptEngineMinorVersion() + "\"," +
"\"build\": \"" + ScriptEngineBuildVersion() + "\"}";
var o = JSON.parse(s);
document.body.innerHTML = JSON.stringify(o);
</script>
</html>
{"engine":"JScript","major":"9","minor":"0","build":"16440"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment