Is there a way in which I can easily obtain computer name using Javascript?
All computers are on the same domain.
I tried:
{
window.onerror=null;
host=addr.getHostName();
ip=addr.getHostAddress();
alert("Your host name is '" + host + "'\nYour IP address is " + ip);
}
which didn't return any values - in fact the alert didn't even pop up!
All computers are on the same domain.
I tried:
{
window.onerror=null;
host=addr.getHostName();
ip=addr.getHostAddress();
alert("Your host name is '" + host + "'\nYour IP address is " + ip);
}
which didn't return any values - in fact the alert didn't even pop up!