I wrote some javascript to get my windows users name using activex. When I save this to my desktop it runs fine. The moment I deploy it to apache2 running on Ubuntu 12.10 it doesn't display anything.
HTML Code:
<html>
<head>
    <script language="javascript">
        function GetUserName()
        {
            var wshell = new ActiveXObject("WScript.Shell");
            alert(wshell.ExpandEnvironmentStrings("%USERNAME%"));
        }
    </script>
</head>
<body OnLoad="GetUserName();">
</body>
</html>
Am I doing something wrong or missing anything?