How To Disable Right Click Using JQuery

This article explains to you how to disable right click function using jquery.If you like to add this feature to your site,then follow the steps below.

1.Login to your blogger dashboard--> layout- -> Edit HTML

2.Scroll down to where you see </head> tag .

3.Copy below code and paste it just before the </head> tag .

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>

<script type='text/javascript'>
//<![CDATA[

$(document).ready(function(){
$(document).bind("contextmenu",function(e){
return false;
});
});

//]]>
</script>


4.Now save your template and you are done.

0 comments:

Post a Comment

 

Support By Blogger