title: JavaScript - Get size of element in HTML file without using CSS file and style tag?
body: <p>I've got this simple test HTML file:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Test&lt;/title&gt;
      &lt;script type="text/javascript"&gt;
      function test()
      {
          alert (document.getElementsByTagName("button")[0].style.width);
      }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;
          &lt;button id="buttonTest" onClick="test()" &gt;
              Test it!
          &lt;/button&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I don't have a CSS file though, but I would like to get the size and other properties of the respective HTML element (button in this case), but this does only seem to work if they are not set priorly.</p>
  
  <p>Is there a way to get the measures and other properties like background color or font (color) of e.g. buttons when they are not preset but defined by the content?</p>
  
  <p>Kind regards,
  jaySon</p>