📜  如何在html页面中禁用鼠标右键 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:53.786000             🧑  作者: Mango

代码示例1
document.addEventListener('contextmenu', event => event.preventDefault());

// ⇓ Test it (fiddle) ⇓