-1
Hello, I would like to get the name of the user’s machine that is accessing my application.. How can I do this by javascript?
<script type="text/javascript">
function nomepc(){
var net = new ActiveXObject("wscript.network");
alert(net.UserDomain + ': ' + net.ComputerName);
}
</script>
are using nodejs ? because this has a function that allows you to do this
– ScrapBench
This command only works in IE, and not all versions. The machine name cannot be obtained by the client.
– iamdlm
@Scrapbench, How can I do in nodejs? you have some example?
– Rafael Veloso