Notifications
Announcements
No record found.
Hello,
Is there a way to get the user computer name using javascript?
*This post is locked for comments
string ip = Request.UserHostAddress;
string hostname = Request.UserHostName;
or
obj= new ActiveXObject("wscript.network");
alert(obj.ComputerName);
Try using the below code.
Note: You need to enable security settings for it.
var objUserInfo = new ActiveXObject("WScript.network");
var uname = objUserInfo.UserName;
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2