Thursday, July 7, 2011

How to disable right click on web page with jquery; how to disable right click in javascript; how to disable right click in asp.net

We have to bind contextmenu and return false from this.
This function also handel right click on images of web page.
 <script language="javascript" type="text/javascript">
    $(document).bind("contextmenu",function(e){    
      return false;
     });
    </script>


Thanks
Mahesh

1 comment:

Abhishek Verma said...

Well this is a good example