Disable Right Click Function Using Java Script

by satheeshkumar 2012-07-02 17:14:56

Disable right click on your pages use following function,



function no_rclick() {

var msg = 'Do not right click'; // Change

if (event.button == 2) {

alert(msg);

}

}

document.onmousedown=no_rclick;

624
like
0
dislike
0
mail
flag

You must LOGIN to add comments