Link to home
Start Free TrialLog in
Avatar of meherdadb
meherdadb

asked on

retrieve WinNT user name

Hi
How can i retrieve the Windows NT user name using javascript??
Please help.
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of makc
makc

Yeah, maybe I am too late with this, but:

<script>
var objShell = new ActiveXObject( "WScript.Network" );
alert(objShell.UserName)
</script>
Yep, that is the one I meant ;)