javascript - How can I right-click the content of a website after selecting it, but there is no copy in the right-click, and can I use ctrl+c to copy it?
黄舟2017-06-13 09:24:04
0
4
849
For example, the content of this website http://bj.kongjianjia.com/xie...
Reconstruct the right-most event
http://www.oschina.net/code/s...
contextmenu event prevents the default behavior of right click
https://developer.mozilla.org... More detailed
document.addEventlistener('contextmenu',function(e){e.preventDefault();})