2

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.

Adeel Aslam
  • 1,285
  • 10
  • 36
  • 69

0 Answers0