This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 263
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: 15376
    
    6
You can not change these browser efaults with JavaScript.

Eric
 
Consider Paul's rocket mass heater.
 
subject: Changing the header and footer while taking print outs
 
Similar Threads
iReport excel export to exclude page header and page footer [Urgent]
how to remove the footer and header from a web page while printing
Design choice for dispatching request to view
jsf scrollbar
How to display JSP Page elements sequentially?