You can disable right click on ur webpages to prevent others stealing ur images and other things... place this code above head tag..
//script language="JavaScript"
var message="Sorry, that function is disabled.";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// /script>
Javascript : Disable Right Click
Labels:
Javascript
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment