| Place below code in javascript section of web page and no need to call any function
//This code is to stop right click of mouse
document.onmousedown=click
function click()
{
if ((event.button==2) || (event.button==3))
{
alert("No right clicking allowed here");
}
}
//This code is to stop left click of mouse
document.onmousedown=click
function click()
{
if ((event.button==2) || (event.button==3))
{
alert("No left clicking allowed here");
}
} | | |