/* Jscript - ComputerName, Username & DoaminName */
var oWshNet = new ActiveXObject("WScript.Network");
var computerNmae = oWshNet.ComputerName;
var userName = oWshNet.UserName;
var domainName = oWshNet.UserDomain;
Note: This works only with ActiveX in IE.