View Full Version : Remove header/footer when printing webpages script


Joe King
09-08-2004, 09:42 AM
Hi,
I need a script ot HTML code of some sort that lets me do the following...

I want to print out a webpage, but it removes the header and footer when it prints. I mean the title, file name, date, etc. that appears on the top and bottom of the page.
I know i can do this simply by going to page setup then removing the header and footer, but i want to be able to print off a page on my website without removing the header and footer by going to page setup every time. I need a script that i can put in my webpage and when i click print, either using the File > Print button or a button on the web, the header and footer wont be printed. I need this to be able to print out forms.

Any type, if it's PHP, HTML, some type of script, anything. If you know any codes that does this, can you please show me a link or post it up here? It would be much appriciated. Or if you have any other ideas, they are welcome.

Thanks in advance. :)