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
javascript jquery html


source to share


No one has answered this question yet

Check out similar questions:

7494
How can I remove a specific element from an array in JavaScript?
5722
How can I remove a property from a JavaScript object?
5129
How do I return a response from an asynchronous call?
2190
How to render text or image with transparent background using CSS?
2132
Get selected text from dropdown (select field) using jQuery
1690
How does data binding work in AngularJS?
1567
Converting form data to JavaScript object with jQuery
1542
How can I print JSON using JavaScript?
1449
Previewing an image before uploading it
1017
jQuery Get Selected Option From Dropdown



All Articles
Loading...
X
Show
Funny
Dev
Pics