Disabling copy button on right click menu
Can any one help me how to disable copy button on right click menu in the textbox
Thanks for ur response.i wrote a one textbox in html and type a message in textbox then select a message and right click on it, it shows copy,cut, paste select all and unod. my problem is disabling copy in that menu.
> i wrote a one textbox in html and type a message in
> textbox then select a message and right click on it,
> it shows copy,cut, paste select all and unod. my
> problem is disabling copy in that menu.
This has nothing to do with Java. It's a JavaScript task and it would be proper to post the question on some JavaScript forum.
As far as I remember, there is no way of disabling only the 'copy' part of the context menu. If you want to disable the complete context menu, that can be done.
Please note that if you're hoping to prevent users from copying something, it's impossible. Keyboard shortcuts, the browser edit menu and other methods will circumvent context-menu restrictions. It merely annoys users and looks unprofessional.