title: how can I get the value of width with javascript
body: <p>I put this on the head section</p>
  
  <pre><code>var d = parseInt(document.getElementById('test').style.width);
  alert(d);
  </code></pre>
  
  <p>But the output is <code>NaN</code>.</p>
  
  <p>how do you get the value?</p>