how to get rid of the header and footer when printing from a web browser?
I am using the function on window print to print from within my web application.
`<body onload=""window.print();"">开发者_StackOverflow;
But on the header i get the date 07/10/2011
and page title and footer i get the url of the page. How do i remove these? and i get 1/1
or 1/2 2/2
etc
I am redirecting users to a page and generating the page dynamically and just want what is being generated to print.
I just want the content so i can put it on headed paper,
with out the extras?
Check your browser settings. JavaScript does not control this.
精彩评论