/    Sign up×
Community /Pin to ProfileBookmark

Is there a way to prevent a visitor to a website from printing certain pages using javascript or another method? Please do not recommend “no right-clicks” or anything like that. Any help towards a solution would be appreciated.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@spoontacularDec 31.2002 — Nope, you cannot control the user's browser. And if there was a way to disable print and you did it, your users would be very, very cross.
Copy linkTweet thisAlerts:
@CharlesDec 31.2002 — [font=georgia]There's a very simple method that doesn't use JavaScript, but it would be very much like giving the user the single finger salute.[/font]
Copy linkTweet thisAlerts:
@spoontacularDec 31.2002 — And how would that be?
Copy linkTweet thisAlerts:
@hismightinessauthorDec 31.2002 — Charles, can you please send me in a certain direction to be able to do this. This is very only a couple pages and I definitely understand the concepts behind web development and author-client relationships. I just want to prevent a page from being printed temporarily if possible.
×

Success!

Help @hismightiness 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.25,
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,
)...