【js效果】屏蔽鼠标右键
16lz
2021-04-07
<html><head><title>屏蔽鼠标右键</title><script language="javascript">function click(){if (event.button==2){alert('禁止使用鼠标右键!') }}document.onmousedown=click</script></head><body>请在本页面空白处点击鼠标右键,会看到效果!~</body></html>©著作权归作者所有:来自51CTO博客作者wx605879fdc8dae的原创作品,如需转载,请注明出处,否则将追究法律责任
更多相关文章
- 在Windows Server Core 2019 上安装SQL Server 2019
- k8s 网络
- 没搞明白哪里错了 我的天
- 编程题:统计二进制中1的个数
- 做运维都干什么?
- gstvideo_has_codec: none can handle 'video/x-h264
- gstvideo_has_codec: none can handle 'video/x-h264
- gstvideo_has_codec: none can handle 'video/x-h264
- 从事运维工作是一种怎样的体检?