title: Getting battery status in chrome
body: <p>I am trying to get battery status in chrome browser using the following code</p>
  
  <pre><code>var battery=navigator.battery||navigator.webkitBattery||navigator.mozBattery;
  document.writeln(Math.round(battery.level*100)+"%");
  </code></pre>
  
  <p>Its working in mozilla but not in chrome.</p>
  
  <p><a href="https://stackoverflow.com/questions/11446407/battery-api-is-not-working-on-chrome-pop-up-window">This</a> question on SO stated that its removed from chrome,but it was asked a year before.
  Is there any  way to get battery status in chrome?</p>
  
  <p>Note: By battery status ,I mean the battery status of the desktop computer.Its for a computer and not for mobile device.</p>