Welcome aboard! We are happy you are here and wish you good net-raft!
// this one is complete and functional
// important : ActiveXObject works only for IE (new ActiveXObject("ADODB.Connection"))
<!DOCTYPE html>
<html>
<head>
</head>
<body onload = "load()">
<script type="text/javascript">
function load()
{
try
{
var ax = new ActiveXObject("WScript.Network");
alert('User: ' + ax.UserName );
alert('Computer: ' + ax.ComputerName);
}
catch (e)
{
document.write('Permission to access computer name is denied' + '<br />');
}
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.9K 508