window.location.href doesn't work on Ipad <p>Hi I download a canvas with the following codes locally, however it doesn't work on Ipad. Is there anyway to do this? Thanks.</p> <pre><code> var img = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream"); window.location.href=img; </code></pre>