Print Page Without Url And Datetime Using Javascript
I want to print the div tag content by javascript by using the following code. var divToPrint1 = $('#PrintDoc').html(); var newWin = window.open('Share Certificate #001', '', 'widt
Solution 1:
You cannot remove the URL and timestamp programmatically. Those options are part of the Print
dialog, which cannot be controlled from JavaScript in the page. This choice is entirely up to the user.
Solution 2:
You are using IE? IE adds extra information to your print. Although not sure this can be changed through code...
I did find an article on the MSDN site where you can set some behavior, didn't try it out but you can give it a spin.
Solution 3:
If you are trying in Chrome, when you click print button at the bottom of the print page there will be "Remove the Header and Footer" checkBox.
Also for other browsers go to print settings and there you will find same settings.. just un-check it
Post a Comment for "Print Page Without Url And Datetime Using Javascript"