Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I print a webpage from Internet Explorer it will automatically add a header and footer including the website title, URL, date, and page number.

Is it possible to hide the header and footer programatically using Javascript or CSS?
Posted
Updated 12-Sep-12 23:44pm
v2
Comments
Mohibur Rashid 13-Sep-12 5:49am    
How about changing your method of printing? such as using pdf?

Hi,

I guess you cannot handle this kind of client browser setting from your asp.net page niether from CSS or javascript. if the print should come without headers and footers, then you have to change the setting of the client browser. Goto File - PageSetup, make header and footer as empty.

hope it helps.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900