/    Sign up×
Community /Pin to ProfileBookmark

Javascript Printing without Header & Footer

Dear All,

Please let me know how to print with javascript without printing header and footer of the page.

Thank you

menake

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Jan 09.2006 — If you are talking HTML elements on the page you can do it with Print media CSS. Seach the HTML forum or google.

If you are talking about the page number and URL on the printed page, only way to do that is to manually go into the browser and change the settings. No JavaScript can not remove that value for you and there is no CSS thing to get rid of it.

Eric
Copy linkTweet thisAlerts:
@CharlesJan 09.2006 — Your best practice would be to offer a printer-friendly, PDF version.
×

Success!

Help @menake 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...