Reputation: 29533
I am using the function on window print to print from within my web application.
`<body onload=""window.print();"">
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?
Upvotes: 1
Views: 340
Reputation: 114367
Check your browser settings. JavaScript does not control this.
Upvotes: 1