I tried to use the below script to disable right-click on my HTML
page.
But I'm getting
Unexpected identifier error.
<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
Function disableclick(e){
if(event.button==2){
alert(status);
return false;
}
}
</script>