Click here to Skip to main content
12,290,502 members (64,093 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Javascript CSS
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 12-Sep-12 23:39pm
Edited 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?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160518.1 | Last Updated 13 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100