Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Control header/footer printing

Reply
Thread Tools

Control header/footer printing

 
 
Andrew Poulos
Guest
Posts: n/a
 
      03-06-2008
I can setup a print CSS file to control how my page prints but is there
a way to hide the header and the footer?

Currently the page's title and URL display in the header and page number
and date in the footer and I'd rather they didn't print.

Andrew Poulos
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      03-06-2008
Andrew Poulos wrote on 06 mrt 2008 in comp.lang.javascript:

> I can setup a print CSS file to control how my page prints but is there
> a way to hide the header and the footer?
>
> Currently the page's title and URL display in the header and page number
> and date in the footer and I'd rather they didn't print.
>


That is browser dependend,
and not under the influence of the page's javascript.

That it is not under the influence of the page's CSS is OT.

[If you want to have a complete say over the print layout, use pdf.]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      03-07-2008
Andrew Poulos wrote:
> I can setup a print CSS file to control how my page prints but is there
> a way to hide the header and the footer?


Maybe. Try comp.infosystems.www.authoring.stylesheets instead.


PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
 
Reply With Quote
 
Joost Diepenmaat
Guest
Posts: n/a
 
      03-07-2008
Andrew Poulos <> writes:

> I can setup a print CSS file to control how my page prints but is
> there a way to hide the header and the footer?
>
> Currently the page's title and URL display in the header and page
> number and date in the footer and I'd rather they didn't print.


If you're using CSS media specification you can just set display: none
(or display: hidden) on everything you don't want to print.

Should work on most modern browsers, at least it worked in IE and
Mozilla last time I checked (5 years ago).

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
 
Reply With Quote
 
Jeff North
Guest
Posts: n/a
 
      03-09-2008
On Thu, 06 Mar 2008 22:53:51 +1100, in comp.lang.javascript Andrew
Poulos <>
<47cfdb4e$0$23635$> wrote:

>| I can setup a print CSS file to control how my page prints but is there
>| a way to hide the header and the footer?
>|
>| Currently the page's title and URL display in the header and page number
>| and date in the footer and I'd rather they didn't print.
>|
>| Andrew Poulos


As others have stated, this is not a javascript of css problem.
You can however use an ActiveX control to set margins etc

http://www.meadroid.com/scriptx/freedep.asp

Note that is will not work in browsers that do not support ActiveX.
The user will be prompted to install this on their machine (you may
want to have some information about this on your web page).
It changes the settings of the printer and can affect other
applications.
-- -------------------------------------------------------------
: Remove your pants to reply
-- -------------------------------------------------------------
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 2 11-27-2010 12:12 PM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:52 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:50 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:28 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-18-2007 10:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57