dont wan to print header and footer in webpage

wanna ask the experts here, the question is how and what is the code to disable/to make sure that the header and the footer (such as the webpage link, page of, date and etc) is not print out when the user press print button at their internet browsers.thx in advanced.
[281 byte] By [mela] at [2007-10-2 18:27:58]
# 1
One way of doing it is to provide your own print button.Please refer www.w3schools.com if you need more help.
Rahul.Guptaa at 2007-7-13 19:49:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

For example I have an JSP page that draws up a report and display it to the user. If the user wishes to do so, he can click a "print" button which activates the printer dialog via javascript. This would be the same as if they selected "File > Print" from the browser menu.

My problem is that at the top of the page, page numbers are added automatically, and at the bottom the URL of the page that was printed. Is there a way to get rid of this extra information, so that a "clean" document can be printed with only the results from the report.

Any help would be appreciated,

Thanks.

mela at 2007-7-13 19:49:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...