title: How get the width of an input element in IE?
body: <p>I dont work with a framework, i'm working with JavaScript by default.</p>
  
  <p>I need to know the width of an input text element, in the good browsers i use:</p>
  
  <pre><code>width = document.defaultView.getComputedStyle(el, "").getPropertyValue('width');
  </code></pre>
  
  <p>But in the f**ing Internet Explorer use:</p>
  
  <pre><code>if (typeof el.currentStyle['width'] == "undefined" || el.currentStyle['width'] == 'NaN') {
    width = el.currentStyle['width'];
  } else {
    width = null;
  }
  </code></pre>
  
  <p>This works, if it is set the width by css or style propertie, but if the size is a default (set by size propertie or dont set) <em>el.currentStyle['width']</em> is undefined.</p>
  
  <p>I need to know the width of an element without propertie set.</p>