javascript - Print Image from data URI in window.open -


i wan click @ columnn , open new blank page picture inside.

pic1 dataurl canvas.

when try print image, tag appear <div><image src=pic1/></div> when inspect it. wan dataurl pass inside instead of string pic1. there anyway? thanks

solved:

 $('#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>';     }); 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -