File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Remove header and footer when printing html-page! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Remove header and footer when printing html-page!" Watch "Remove header and footer when printing html-page!" New topic
Author

Remove header and footer when printing html-page!

Emil Karlsson
Ranch Hand

Joined: May 23, 2002
Posts: 63
Hi,
Is it possible through a javascript to remove the header and footer when you print a html-page from Internet Explorer?
/Emil Karlssoon
[ September 08, 2003: Message edited by: Emil Karlsson ]
Vijay S. Rathore
Ranch Hand

Joined: Oct 29, 2001
Posts: 449
Put your Header & footer and in a <span> and make the <span> visibility 'hidden' when you print.


SCJP, SCJD, SCWCD1.4, IBM486, IBM484, IBM 483, IBM 287, IBM141, IBM Certified Enterprise Developer - WebSphere Studio, V5.0
Author of IBM 287 Simulator Exam
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
Are you talking about the url on the page? You can not effect that with the printing.
Emil Karlsson
Ranch Hand

Joined: May 23, 2002
Posts: 63
Hi,
yes I ment the URL and the pagenumber!
It was sad that it wasn't possible to affect that!
Thanks a lot
/Emil
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
I think it can be changed in the user persoanl settings, but I am not 100% sure. But I know JS can not touch it.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Remove header and footer when printing html-page!
 
Similar Threads
How to overwrite browser's property.
Frame Issue
Changing the header and footer while taking print outs
How to overwrite browser's property.
how to remove the footer and header from a web page while printing