Hi folks,
Hope you can help me on this.
What I am trying to find out is if it is possible to get an NT username through javascript.
The codeing that I have found so far does not seem to work.
The code that i have is:
When i run this code i get the error "System is undefined".
Any help would be greatly appreciated.
Thanks
Martin
Hope you can help me on this.
What I am trying to find out is if it is possible to get an NT username through javascript.
The codeing that I have found so far does not seem to work.
The code that i have is:
Code:
<script language="javascript">
function getdata()
{
var username = System.getProperty("user.name");
username = username + ".htm";
window.open(username,'null','menubar=no,width=500,height=600',false);
}
</script>
<body>
<form name="form1" method="post" action="">
<input name="Button" type="button" onClick="getdata()" value="Get Stats">
</form>
</body>
When i run this code i get the error "System is undefined".
Any help would be greatly appreciated.
Thanks
Martin