How do I disable right click on my web page?


Using javascript

     use oncontextmenu="return false;" on your HTML body tag.      

Using jQuery

    
$(function() {
        $(this).bind("contextmenu", function(e) {
            e.preventDefault();
        });
    });
Advertisements