aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 15376
    
    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: 15376
    
    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://aspose.com/file-tools
 
subject: Remove header and footer when printing html-page!