Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function print() {
- var w = window.open();
- w.document.write(....);
- // time for rendering images
- setTimeout(function () { w.print(); w.close();},10);
- }
- ele.setAttribute("src","LogoUp.png"); // ele is an image element
- <img style="margin-left: auto; margin-right:auto; src="LogoUp.png" >
Add Comment
Please, Sign In to add comment