在网页 <Body> 标签中加入 oncontextmenu="self.event.returnvalue=false" 语句,使单击鼠标右键时不能弹出右键选单,也就不能执行“图片另存为”命令选项;
禁止右键菜单:把下列代码加入到<head> 与 </head> 之间
<SCRIPT language=javascript> function click() { if (event.button==2) {alert('欢迎访问本站!')} } document.onmousedown=click </SCRIPT> (该方法可以破解)
禁止右键菜单:弹出“添加至收藏夹”窗口
<SCRIPT language=javascript> <!-- function click() { if (event.button==2) {window.external.addFavorite(this.location,this.document.title)} } document.onmousedown=click //--> </SCRIPT> (该法亦可被破解)
——————来自网络