Hello,
Is there a way to get the user computer name using javascript?
*This post is locked for comments
Try using the below code.
Note: You need to enable security settings for it.
var objUserInfo = new ActiveXObject("WScript.network");
var uname = objUserInfo.UserName;
string ip = Request.UserHostAddress;
string hostname = Request.UserHostName;
or
obj= new ActiveXObject("wscript.network");
alert(obj.ComputerName);
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156