1.直接按F12 2.Ctrl+Shift+I查看 3.鼠标点击右键查看 4.Ctrl+u=view-source:+url 把以上三种状态都屏蔽掉就可以了,document有onkeydown(键盘按键事件),该事件里面找到对应的keycode并处理就可以, document也有oncontextmenu鼠标右键事件,屏蔽即可.4里面的Ctrl+u是可以屏蔽的. window.onload=function(){ document.onkeydown=function(){ var e=win…