Home >Web Front-end >JS Tutorial >A trick to teach you how to block the right mouse button
<script type="text/javascript"> var a={ stop:function(){ return false; } }; document.oncontextmenu=a.stop; </script>
The above is the detailed content of A trick to teach you how to block the right mouse button. For more information, please follow other related articles on the PHP Chinese website!