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
Post a Comment