javascript - window.open() opens a blank screen in chrome -


i checked same code in firefox , works perfectly. in fact, worked in chrome few weeks back, i'm getting blank screen.

the code below:

the function triggers on button click.

function saving() {   var saveurl = canvas.todataurl();    window.open(saveurl, "_blank", "location=0, menubar=0"); } 

          var win=window.open();           win.document.write("<img src='"+canvas.todataurl()+"'/>"); 

Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -