This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Changing the header and footer while taking print outs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Changing the header and footer while taking print outs" Watch "Changing the header and footer while taking print outs" New topic
Author

Changing the header and footer while taking print outs

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 265
Hello Java Ranchers...
How can i remove the header and footer of a html page while giving a print command..

for egs.. the default value for header and footer will be like this
header : &w&bPage &p of &P
footer : &u&b&d

the header will be showing the page title in one end and page number in other end.. the footer will be showing the URL in one end and date in the other end..

Here instead of the URL in the footer i would like to give the name of the person who is printing the document from the session..

How can i put that value.. there? please help me.. ranchers..

Thanks in advance..
regards
Aravind
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
You can not change these browser efaults with JavaScript.

Eric
 
Have you checked out Aspose?
 
subject: Changing the header and footer while taking print outs
 
It's not a secret anymore!