title: JavaScript for Chrome extension - get Windows username
body: <p>I am working on a Chrome extension, where in my JavaScript function should identify the logged in Windows username.</p>
  
  <p>I want to access Windows' username within JavaScript and display it in my Chrome extension web page.</p>
  
  <p>I tried following <code>&lt;script&gt;</code>, this works well in IE. Is there any equivalent way possible with the Chrome browser?</p>
  
  <pre><code>function GetUserName()
      {
          var wshell = new ActiveXObject("WScript.Shell");
          alert(wshell.ExpandEnvironmentStrings("%USERNAME%"));
      }
  </code></pre>
  
  <p>Please let me know any built-in method to extract the username.</p>