Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Print code :
- function printing(){
- var printContents = document.getElementById('Giant9.com_Billing_printing').innerHTML;
- var popupWin = window.open('', '_blank', 'width=960,height=960,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,titlebar=no,top=55');
- popupWin.window.focus();
- popupWin.document.open();
- popupWin.document.write('<!DOCTYPE html><html><head><title>TITLE OF THE PRINT OUT</title>'
- +"<link media=\"all\" type=\"text/css\" rel=\"stylesheet\" href=\"http://giant9.com/a/dist/css/bootstrap.min.css?version=2.1a\">"
- +'</head><body onload="window.print(); window.close();"><div>'
- + printContents + '</div></html>');
- popupWin.document.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement