开发者

how to get rid of the header and footer when printing from a web browser?

开发者 https://www.devze.com 2023-04-11 05:55 出处:网络
I am using the function on window print to print from within my web application. `<body onload=\"\"window.print();\"\">开发者_StackOverflow;

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/2011and 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号