I want to get the OS username with JavaScript for cross browser. I had been trying the different solutions for this but none actually worked. I don't actually want to install 3rd party plugin as according to my requirement I can't do that.
This is so far I get on the web while surfing for the solution
var wshshell = new ActiveXObject("wscript.shell");
var username = wshshell.ExpandEnvironmentStrings("%username%");
alert(username);