Hi,
i have written a code for getting the environmental variable.I am getting the error as wscript undefined.
<html>
<head>
<title>Test</title>
<script language="javascript">
function getEnvironment() {
var shell = WScript.CreateObject("WScript.Shell");
var env = shell.Environment("USER");
alert(env("temp"));
}
</script>
</head>
<body>
<button onclick="javascript:getEnvironment();">Click</button>
</body>
</html>