Please help I want a code for disabling printing and saving of a webpage from file menu with JQUERY or JAVASCRIPT
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can have a CSS style that will only be visible when printing:
Then I guess you can do something like:
Here is also a tutorial.
This won’t prevent printing, but should work for what you want.
About preventing the page to be saved, that is impossible, if they are viewing the page, they already downloaded it actually. The best you can is to obfuscate your code to make it unreadable.
Obfuscating/Compressor Tools: