To disable the right-click menu, you can use the oncontextmenu attribute:
<TextareaOncontextmenu= "Return false"> </Textarea>
Compatibility: http://www.quirksmode.org/dom/events/contextmenu.html
Disable copying by using oncopy and oncut:
<TextareaOncopy= "Return false"Oncut= "Return false"> </Textarea>
Disable Pasting and use onpaste:
<TextareaOnpaste= "Return false"> </Textarea>
Compatibility: http://www.quirksmode.org/dom/events/cutcopypaste.html
Disable Selection: Use onselectstart and style-moz-user-select-WebKit-user-select
Onselectstart is only for IE,-moz-user-select is for ff, and-WebKit-user-select is for browsers with the same kernel as chrome.
<TextareaOnselectstart= "Return false"Style= "-Moz-user-select: none;-WebKit-user-select: none ;"> </Textarea>
Note: Some sogou Browsers Do not implement-WebKit-user-select very well, so <textarea> cannot be entered. Of course, it is enough to disable copy and paste, and you do not need to set it as unselectable.
Disable copy, paste, and right-click a form (contextmenu, oncopy, oncut, onpaste, onselectstart)