javascript is not giving the computer name

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.

Answers:

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.