Remove the default browser header and footer when printing HTML

fmsf picture fmsf · Nov 1, 2008 · Viewed 37.3k times · Source

I got an HTML with the <body onload="window.print()">.

The question I'm trying to ask is:

  • Is there any way to remove the strings that the web browsers add to the printed page?
  • Such as:
    • Web site from where the page was printed
    • Page count
    • Title of the web page
    • Date of printing

Answer

Jarod Elliott picture Jarod Elliott · Nov 1, 2008

These a usually browser specific print settings.

In IE & FireFox for example you can go into page setup and change the header and footer details for printing.

I don't think this can be controlled by the web page itself.