title: Im trying to display the attribute value of circle but its not working
body: <p>Im trying to display the attribute value of circle but its not working.</p>
  
  <p>My Script</p>
  
  <pre><code>var x = document.getElementById("circle").getAttribute("cx");
  document.write(x);
  </code></pre>
  
  <p>My HTML</p>
  
  <pre><code>&lt;svg width="1000" height="500"&gt;
      &lt;circle id="circle" cx="50" cy="50" r="50"&gt;
  &lt;/svg&gt;
  </code></pre>