Click here to Skip to main content
12,813,675 members (35,264 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 13-Sep-12 0:39am
Updated 13-Sep-12 0:44am
Mohibur Rashid 13-Sep-12 5:49am
How about changing your method of printing? such as using pdf?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1


I guess you cannot handle this kind of client browser setting from your 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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


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.170308.1 | Last Updated 13 Sep 2012
Copyright © CodeProject, 1999-2017
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