/    Sign up×
Community /Pin to ProfileBookmark

get rid of headers and footers while printing

hi there,

this seems to be a problem for many people, ive had a real good look for a solution to this but there doesnt seem to be a solution to this one.

when i print a web page, certain information is added to the letter by the browser into the header and footer.

info like “Page 1 of 4”, the date, the document URL…

it would be great if javasrcipt (or css would be even better) could turn off the header and footer info so it wasnt printed out.

most articles i have seen say you cant do it and you need to switch the header and footer off in “page setup” or “print preview” in the print dialog boxes.

good luck,

Paul

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Declan1991Apr 15.2009 — You cannot change the user's settings like that, it's totally up to them what to print. All you can do is use a "print" stylesheet to add or remove stuff on the page.
×

Success!

Help @paulonline2501 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...