Serious Earnings
Posts tagged disable cut function
How to Disable the Paste Function in a Text Box
Feb 24th
The other week I was coding a web page for a friend and he wanted to create a comment box that didn’t allow people to paste anything into the text box. This way people would be less likely to post spam. After a little while of researching, I found a way to disable the paste function in a text box using html. Also, here’s how you disable the copy and cut functions as well:
Just add these to your textarea tag:
Disable the paste function: onPaste="return false;"
Disable the copy function: onCopy="return false;"
Disable the cut function: onCut="return false;"
If you want to disable all three: onPaste=”return false;” onCut=”return false;” onCopy=”return false;”
I can't guarantee that this works in all browsers, however I know it works in most Internet Explorer Browsers and Firefox.
Do you need help implementing code? We offer html implementation services at very fair prices. Please feel free to contact us: survey[at]flurbl.com. If we can't implement the code, we can recommend someone who can!
