oncontextmenu='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false'
将以上代码放入需要禁止右键的区域,如果是整个页面都禁止右键,则把以上代码放入<body> 标签内,如:
<body oncontextmenu='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false'>
网页内容
</body>