title: Get width or height svg rectangle javascript
body: <p>I can get the width of my object svg in javascript and save the value in a variable. this is my object</p>
  
  <pre><code>    &lt;rect id="cercle1" x="5" y="25" width="50" height="50"  stroke-width="1" stroke="#0E0E0E" style="fill:red; stroke:black; stroke-width:2"; /&gt;
  </code></pre>
  
  <p>I try this:</p>
  
  <p>document.getElementById('cercle1').width.value;</p>
  
  <p>thanks for help</p>