By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,474 Members | 1,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,474 IT Pros & Developers. It's quick & easy.

Problem with copy paste - disable paste option

P: 6
hi all

question is :wen i copy any text and try to paste it in the web form it shlould not paste..i can disable rt click but tats not the requiremnet..i want to copy the text but there should not be an option to paste it...i want a code which works in all (eg:internet explorere,mozilla,..)..pls help me out iam trying for this from past one week...

one of my frd said to find code to delete memory from clipboard..i did not gt tat too....
Nov 27 '08 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 15k+
P: 16,027
The first question to ask yourself is why you want to disable paste. Rarely is it a good idea to disable normally expected browser behaviour.

If you give more details about your problem, we can provide workaround solutions.
Nov 27 '08 #2

P: 6

like they shld not be any option to paste the password wen i provide confirm password...
i want the user to re type again....n its also for security reason i want to disable paste able to copy but not able to paste the data....
Nov 28 '08 #3

Expert Mod 15k+
P: 16,027
Instead of disabling the paste (which the user can always work around if they're determined), only allow one character to be input at a time. See this thread for a solution.
Nov 28 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.