Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var recibo = $('#recibo-' + venta.id).html();
- var mywindow = window.open('', 'my div', 'height=400,width=600');
- mywindow.document.write('<html><head><title></title>');
- mywindow.document.write('<link rel="stylesheet" media="screen" href="/assets/css/bootstrap.min.css">');
- mywindow.document.write('</head><body>');
- mywindow.document.write(recibo);
- mywindow.document.write('</body></html>');
- mywindow.document.close(); // necessary for IE >= 10
- mywindow.focus(); // necessary for IE >= 10
- mywindow.print();
- mywindow.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement