Printing image from data URI to window.open

I want to click on a column and open a new blank page with an image inside.

pic1

is the dataUrl from the canvas.

When I try to print the image, the tag appears <div><image src=pic1/></div>

when I check it. I lost the dataUrl, not the pic1 line. Is there anyway? Thanks to

DECIDE:

 $('#column1').click(function (event){
        var pic1 = document.getElementById('url1').value;

        var win = window.open('', 'Title', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=780, height=200, top='+(screen.height-400)+', left='+(screen.width-840));

        win.document.body.innerHTML = '<div><img src= '+pic1+'></div>';
    });

      

+3


source to share





All Articles