屏蔽右键

< script language = " javascript " >
function  click()
{
    
if (event.button  ==   2 )
    {
        alert(
" Right click is disabled! " );
    }
}
document.onmousedown 
=  click;
</ script >

你可能感兴趣的:(JavaScript)