»
EnglishFrenchVietnamese

Print - No Right Click Image - JavaScriptBank.com

Full version: jsB@nk » Snippet » No Right Click Image
URL: http://www.javascriptbank.com/no-rightclick-image.html

No Right Click Image © JavaScriptBank.comThis JavaScript makes disable right click on images.

Full version: jsB@nk » Snippet » No Right Click Image
URL: http://www.javascriptbank.com/no-rightclick-image.html



JavaScript
<script type="text/javascript"><!-- Begin// Created by: Bethan :: http://www.freewebs.com/bdude183/imagething.htmfunction whichElement(event) {  var tname  tname=event.srcElement.tagName  if (event.button==2 && tname=="IMG"){pressed="picture"}  if (pressed=="picture")  {window.alert("Hey! Stop trying to steal my images!")}  pressed=0}//--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<img src="../../jsbsource/gif_logojsb2.gif" border="0" onmousedown="whichElement(event)"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->