问题
I am Trying to Get the Client Computer name using javascript like this
<script language="javascript" type="text/javascript">
function GetComputerName() {
try {
var network = new ActiveXObject('WScript.Network');
alert(network.computerName);
}
catch (e) {
alert('a');
}
}
</script>
But this is not returning any thing else exception.Plz Help me to find out the client computer name in Javascript.
来源:https://stackoverflow.com/questions/14579752/javascript-is-not-giving-the-computer-name