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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -