This article explains to you how to disable right click function using a simple jQuery code snippet. If you like to add this feature to your site, then follow the steps below.
1.Login to your blogger account and go to "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='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js' type='text/javascript'></script> <script src='http://code.jquery.com/jquery-migrate-1.2.1.js'></script> <script type='text/javascript'> //<![CDATA[ jQuery(document).ready(function($) { $(document).bind("contextmenu", function(e) { return false; }); }); //]]> </script>
NOTE : If jQuery is already included into your theme remove these lines from the above code:
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js' type='text/javascript'></script> <script src='http://code.jquery.com/jquery-migrate-1.2.1.js'></script>
4.Now save the template. Refresh your site and try to right click on your website or blog.
hehehe...some people added no right click trick, you created disable it...so creative...good good
didn't work for me Lasantha Bandara,
http://desimasalawood.blogspot.com
It works! I love it!
www.Sonhos-Concretizados.pt.vu ^^
tanks for this! how did u put the reply at comments?
didn't work for me
Hey,
It didn't work with my blog
http://littlewordsthatcount.blogspot.com
Great simple code. Thank you. It is working.
it rocks !!! work for me ..
http://theworldaccordingto-bon.blogspot.com
work for me..thanks
www.ertihidup.com
works for me http://brainhosting.blogspot.com/
10x
thanks a lot.
it works for me..
http://velements-gallery.co.nr/
Superb Works For me
Www.appswithserial.blogspot.com
Works perfectly!
Wow Amazing It 100% Works Thankssss
YEHEY! It worked for me!
http://travel-on-a-shoe-string.blogspot.com
Thank you Lasantha! You're the best!
Nice trick to disabling the text on blogger.. I intend to apply on my blog then, thanks for the tutorial 🙂
It works but if you hit F5 and then quickly right click you can bypass the script before it gets a chance to re-load. It's impossible to protect images without a watermark anyway but nice simple code example :O)