Powered by Blogger.

Disable Right Click in Blogger Blog without JavaScript

Disable Right Click

Disable the right click on Blogger Blog without using any javascript. it is a simple context menu disabling HTML that will automatically prevent user from right clicking on your blog.

1. Go to Blogger > Template > Edit HTML.

2. Press Ctrl + F and search for <body>

3. Now replace it with the below line.
<body oncontextmenu='return false;'> 
Or if you have <body expr:class='&quot;loading&quot; + data:blog.mobileClass'> replace it with below line.
<body expr:class='&quot;loading&quot; + data:blog.mobileClass' oncontextmenu='return false;'>

4. Now just save your template and refresh your blog. now you will not be able to right click on your blogger blog.

Technorati Tags: ,,


Annabs Sanchez said...

This was super helpful. Thank you very much. :)

Constantine said...

I was in the market for a driving school a couple months ago. My friend’s driving coach really taught him a lot of things that we didn't knew about. So naturally I turned to him for help.
Driver Training

Post a Comment