Loading...
Thursday, November 10, 2011

Disable Right Click on Image Without JavaScript

Some time you have ever worked really hard on graphics for your site only to find later that someone has stolen them as their own. You can help encrypt and protect your site with simple adding code.
There are numerous ways to secure and protect your web site from those who want to steal your content or images.

Some webmasters using JavaScript to disable the right click menu on their websites to prevent people from saving images onto their desktop. Buti now I'll give you a simple way, without javascript or editing HTML code on your Blogger dashboard.

Standard image code sample:
<img src="http://yoursite.com/image.png" />
Add this code after image URL
oncontextmenu="return false;"
Finally your code look like this
<img src="http://yoursite.com/image.png" oncontextmenu="return false;" />

13 comments

may I ask the previous template html code?
how to get previous template from this site?

Reply

Awesome Design..... Please pubish your old template...

Reply

@Fumi and Rahul.. I'll publish my old template asap... Keep visiting my site :)

Reply

nice template, brother.. and thanks for the code :)

Reply

sds 7:p

Reply

Even this is JavaScript oncontextmenu='' is a JS DOM element. Anyway, it at least people don't have to keep that annoying script that sends out an alert message.

Reply

Thanks View my blog http://files27.blogspot.com

Reply

Post a Comment

Attention...!!! Do not include a direct link! It will be removed automaticly from our comment system.