title: Canvas create an image from URL
body: <p>I have a url that generates images on canvas with parameters. I works ok when I load with browser.</p>
  
  <p>The last line is:</p>
  
  <pre><code> window.location = canvas.toDataURL("image/png");
  </code></pre>
  
  <p>When I try to use this url from another page like:</p>
  
  <pre><code>&lt;img src="http://localhost/index.html?i=0 /&gt;
  </code></pre>
  
  <p>Doesnt load. How can i load it.</p>
  
  <p>Thanks in advance.</p>