Disabling the right click on web page
We can secure our web page by using disable the right
click option on web page, if we use this option users can’t copy the matter
from our web page and they can’t copy images also.
This is one of the security option for our web page and
it is a simple technique to avoid right click option.
Here is the code for avoid right click option
<html>
<head>
<script>
document.onmousedown=disableclick;
function disableclick(event)
{
if(event.button==2)
{
return false;
}
}
</script>
</head>
<body oncontextmenu="return false">
</body>
</html>
No comments:
Post a Comment