var wshNetwork = new ActiveXObject("WScript.Network"); alert("域名 = "+ wshNetwork.UserDomain); alert("计算机名 = "+ wshNetwork.ComputerName); alert("登录用户名 = "+ wshNetwork.UserName);