Hide header and footer when printing from Internet Explorer using Javascript or CSS
Posted
by molasses
on Stack Overflow
See other posts from Stack Overflow
or by molasses
Published on 2009-01-16T00:06:08Z
Indexed on
2010/05/05
22:38 UTC
Read the original article
Hit count: 559
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?
Requirements:
- works in IE 6 (no other browser support necessary as its for an Intranet)
- may use ActiveX, Java Applet, Javascript, CSS
- preferably not something that the user needs to install (eg. http://www.meadroid.com/scriptx). feel free to list other third party available plug-ins though as I think this may be the only option
- don't require the user to manually update their browser settings
- don't render the pages as PDF or Word document or any other format
- don't write to the registry (security prevents this)
Thanks
© Stack Overflow or respective owner