I have following javascript code to get currently logged in user:
<script language="javascript">
function GetUserName()
{
var wshell = new ActiveXObject("WScript.Shell");
alert(wshell.ExpandEnvironmentStrings("%USERNAME%"));
}
</script>
But we need to configure some browser settings to use ActiveXObject. So is there any possibility to get current windows username without using ActiveXObject and WScript