Thursday, August 17, 2017
728x90 V3

How to disable right mouse click

In this tutorial i will show you how to disable the right mouse click on your Tumblr blog.But this code you can use on the WordPress, Blogger or other HTML documents. This is really useful because you don’t want someone to steal your texts or images,and with this code right clicking is disabled and you’re safe. Follow me step by step and disable the right mouse click on your site, it’s very easy!


Like always, log in into your Tumblr dashboard, go to tge ‘Customize’ section  ( tut 7 ). Now when you’re there you will see ‘Edit HTML’ link, like in the picture below, click on it!

tut 8

Copy code

Now copy the code below and in the HTML section of your blog find  <body> line, use the CTRL+F command.

<script language=JavaScript>

//Disable right mouse click Script
//By Maximus ( w/ mods by DynamicDrive
//For full source code, visit

var message=”Function Disabled!”;

function clickIE4(){
if (event.button==2){
return false;

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;

if (document.layers){
else if (document.all&&!document.getElementById){

document.oncontextmenu=new Function(“alert(message);return false”)

// –>


Paste code

Paste code right under the <body> line, like in the picture below, now save your HTML file.



Now when your file is saved go to your page where you put the code.Try to use the right click. BOOM, something shows up?

tut 1

I hope that this tutorial helped you and that you’ll now be more safe.

About Dimitrije Zivadinovic (Di)

Dimitrije Zivadinovic (Di)
Hey there, I'm Dimitrije Zivadinovic and this is my blog! I am a blogger, and.. No i am just a blogger, i know something about blogging platforms and i wanted to share my knowledge with you. If you have anything to ask me, feel free to hit me up via social media or leave a comment down bellow!

Check Also

How to add music player to Tumblr blog

Today everybody is using internet, so much blogs, sites, portals and there is a bunch ...

Leave a Reply

Your email address will not be published. Required fields are marked *