title: How to get Windows username using javascript for all browsers?
body: <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Windows Username&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script type="text/javascript"&gt;
  var WinNetwork = new ActiveXObject("WScript.Network");
  alert(WinNetwork.UserName); 
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am using this code for getting username, but it is working only for IE. Is there any way I can get it in all browsers?</p>