title: How can I send a variable from an embedded SVG to the HTML document?
body: <p>I embedded a SVG into a HTML document using this code</p>
  
  <pre><code>&lt;embed src="circle.svg" type="image/svg+xml" /&gt;
  </code></pre>
  
  <p>In the SVG file, I got a script block like this</p>
  
  <pre><code>&lt;svg onload="myFunction()"&gt;
  &lt;script  type="text/javascript"&gt;
  &lt;![CDATA[
      function myFunction() {
          var sum;
          sum = 5 + 3;
      }
  ]]&gt;
  &lt;/script&gt;
  &lt;/svg&gt;
  </code></pre>
  
  <p>How can I get the variable 'sum' from the SVG in the HTML document?
  (Note: The scripting in the SVG is a lot more complex than a simple sum, but I didn't want to overload this question with code)</p>