javascript - window.location.href doesn't work at IE9 -


hi save canvas following codes.

var img = canvas.todataurl("image/png").replace("image/png", "image/octet-stream"); window.location.href = img;   

however ie9 doesn't work. can not open data:image/octet-stream;base64,ivborw0kggoaaaansuheugaab4aaa.....

how can make work @ ie9? helps...

may try using

window.location.assign(img); // or window.location = img; 

for more details check window.location


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -