title: Get width of button Javascript without the "px"
body: <p>I have some code that gets the width of a button, but it always returns the width of the button with "px" on the end. Is there an easy way (without creating a function that removes the last two characters) of getting the width without the "px" part, but still in pixels?</p>
  
  <p><a href="http://jsfiddle.net/XdADS/" rel="noreferrer">jsfiddle example</a></p>
  
  <pre><code>&lt;button name="test" id="mybutton" onclick="alert(this.style.width);" style="width:200px;"&gt;Click me&lt;/button&gt;
  </code></pre>
  
  <p>Thanks in advance</p>