在自己的网页原码 <body> 中加入下面的代码就 可以了
<body oncontextmenu="return false" onselectstart="return false"
ondragstart="return false" onbeforecopy="return false" oncopy=document.selection.empty() onselect=document.selection.empty()>
第二种方法:<body onContextMenu="return false" onSelectStart="return false"> 浏览器需要在 IE5 以上
第三种方法:
<script language="JavaScript">
function click()
{
if(event.button==2)
{
alert('右键已被禁用!')
}
}
document.onmousedown=click
</script>
禁止网页另存为:在<body>后面加入以下代码:
<noscript>
<iframe src="*.htm"></iframe>
</noscript>
禁止网页内容复制.粘贴:在<body>中加入以下代码:
<body onmousemove=/HideMenu()/ oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()">