Friday 30 November 2012

Disable All Clicks in a Webpage using Javascript

Disable All Clicks in a Webpage using Javascript


If you want to completely disable someone's mouse, try altering either script so that the alert will display no matter what button is pushed.


<SCRIPT LANGUAGE="javascript">
function click() {
if (event.button==1 || event.button==2) {
alert('No clicking!')
}
}
document.onMouseDown=click
</SCRIPT> 

No comments:

Post a Comment

Thank You for Your Comments. We will get back to you soon.

back to top