附近打字复印店:阻止右键的STML代码
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/03 05:48:27
请问谁知道:阻止右键的STML代码,谢谢!
<body oncontextmenu="window.event.returnValue=false"
onkeypress="window.event.returnValue=false"
onkeydown="window.event.returnValue=false"
onkeyup="window.event.returnValue=false"
ondragstart="window.event.returnValue=false"
onselectstart="event.returnValue=false">
上面的oncontextmenu="window.event.returnValue=false"
就是禁止右键了
下一个