title: Change height and width of SVG object using JavaScript
body: <p>I want to change height and width of an svg object on a button click. I tried it but it doesn't work:</p>
  <pre><code>function modify() {
      document.getElementById('circle1').style.height = &quot;10px&quot;;
      document.getElementById('circle1').style.width = &quot;10px&quot;;        
  }
  </code></pre>