File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Disable mouse selections in JSP Input Field
Joined: May 08, 2008
Jul 21, 2008 06:28:00
I have a
Page in which I have 2 input fields -
First one for entering email address and second one for Re-Entering email address.
But my question is that is there a way to disable Cut & Paste options from browsers 'EDIT' Menu.
If not then how can i block mouse selection from Input fields, that is disallow users to select what they typed in Input Box.
Joined: Dec 11, 2004
Jul 21, 2008 06:45:00
There is no such thing as a JSP input field.
How to ask a question...
Simple Servlet Examples
Joined: Nov 08, 2001
Jul 21, 2008 07:25:00
There is really no real way to do it. Most companies do not bother to block it.
You can look into oncopy and onpaste, but they are not widely supported.
I agree. Here's the link:
subject: Disable mouse selections in JSP Input Field
Copy and Paste from EXCEL to HTML Text Input
Disabling short cut keys
How to disable the right click button in Textfield o HTML form with NN4
Retrict copy from a text field
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015