• Uncategorized

About javascript : Get-the-Computer-Name-Using-JavascriptJquery

Question Detail

I want to get the computer name using jquery. I tried using ActiveX Object but it will only run on IE browser. Is there is another way to get the computer name using jquery. I tried that code.

 var network = new ActiveXObject('WScript.Network');  
 alert(network.computerName); 

Can u any one help me..

Question Answer

You can’t. This information is not available to web sites.

The ActiveX approach outlined in your question won’t even work in current versions of Internet Explorer, as the WScript.Network ActiveX object is not marked as safe for scripting.

Is there is another way to get the computer name

You can utilize NativeMessaging to achieve requirement at Firefox and Chromium, Chrome.

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.