Spiga

HOW TO DISABLE RIGHT CLICK FUNCTION ON BLOG OR ON WEBSITE

Here i want to say abt how to disable right click on your website or blog...

first of all you have to copy below code add in your blog or site....

for that you have to sign on.... then go to design option....

then go to add gadget option ...

then you get a window of blogger gadgets, in that you have to select html/javascript...

in that paste the given code .... now save .....

Now observe what happened...

Here you get function disabled message...

if you want to change that, you can..

<script language="JavaScript">
<!--  //Disable right mouse click Script //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive //For full source code, visit http://www.dynamicdrive.com  var message=" funnction disabled ";  /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } }  function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } }  if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; }  document.oncontextmenu=new Function("alert(message);return false")  // -->>
</script>



Take care...
All the best....

post your comment below......

0 comments:

Disclaimer

These articles are intended for IT Professionals and systems administrators with experience servicing computer hardware. Please do not attempt any of these procedures if you are unfamiliar with computer hardware, and please use this information responsibly. We are not responsible for the use or misuse of this material, including loss of data, damage to hardware, or personal injury.For videos, games we are not responsible. Thank you.