Friday 30 November 2012

Disable Left Click in Webpage Using Javascript


Disable Left  Click in Webpage Using Javascript


The following Javascript Code Snippet will disable Left Click in the Webpage.. Just keep this code in the head section of the Webpage...


<SCRIPT LANGUAGE="javascript">
function click() {
if (event.button==1) {
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