Get the Computer Name Using Javascript/Jquery

后端 未结 2 2025
清酒与你
清酒与你 2021-01-27 02:15

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 t

相关标签:
2条回答
  • 2021-01-27 02:18

    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.

    0 讨论(0)
  • 2021-01-27 02:29

    Is there is another way to get the computer name

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

    0 讨论(0)
提交回复
热议问题