title: Getting actual widh/height values of element via attributes.getNamedItem
body: <p><br> i am tring to get the width/height values of an element in dom tree (HTML page) and i am using below method:<br></p>
  
  <p><code>
  var event = e || window.event;<br>
  var target = event.target || event.srcElement;
  </code></p>
  
  <p>i am getting id and class information by using<br>
  <p><code>
  var classinfo = target.attributes.getNamedItem("class").nodeValue;<br>
  var idinfo = target.attributes.getNamedItem("id").nodeValue;
  </code></p>but as you can guess, any elemen doesn't have to has id and/or class nodes so i can't check <strong>width="..px"</strong> node value or <strong>getElementById</strong> method
  <br>As a result, is there any way to get width and height values of a node element by using <strong>getNamedItem</strong> method / or any other you can advise.<br>
  <strong>NOTE:</strong> I need to get real width and height not css or inline because maybe width is 60% in css but it is rendered as 100px...<br>
  Thanks in advance.</p>