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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -