Beginner
Beginner

Reputation: 29533

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();"">

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?

Upvotes: 1

Views: 340

Answers (1)

Diodeus - James MacFarlane
Diodeus - James MacFarlane

Reputation: 114367

Check your browser settings. JavaScript does not control this.

Upvotes: 1

Related Questions