Hi friends, hope you are doing good. Today i am going to share a simple javascript code which will help you to protect your web page content. If you want your users do not copy contents or information from your web page for his personal purpose, so below is simple javascript code to disable copy & paste and disable mouse right key click features from your webpage.

Disable copy and paste features from web page

Copy below code snippet and add this before head tags in your web page to disable the copy features from your web page.

Disable mouse right key click on web page

disable-mouse-right-click

Download      Demo

Here is the simple code which will stop your visitor to viewing your source code buy mouse right key click. Please remember if someone really wants to view your source code they can because there are other ways to do it. Add below code before head tags in your web page.

Read:

How to submit multiple forms with jQuery and Ajax
A clock-style timepicker for Bootstrap
Submit Checkbox values in Form with javascript

If you like this article, subscribe our newsletter and share it with your friends!