How do i disable right click on my web page
×


How do i disable right click on my web page

5004

To disable save as in HTML page, you have to disable Control+S Command and also right-click on that particular page.

<script language="JavaScript">
$(document).bind("contextmenu",function(e) {
 e.preventDefault();
});
$(document).keydown(function(e){
    if(e.ctrlKey && (e.which === 83)){
       e.preventDefault();
       return false;
    }
});
</script>

Do you think there are other concepts that I may include in this blog?

Share with me through the comment box

I would love to hear from you

Related Blog = How to disable inspect element



Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments