Text in textarea cant be copy by anyone while it is running in the browser (i.e,the text cant be copy and then paste on the other page) give me suggestion?

Showing Answers 1 - 1 of 1 Answers

Samara

  • Mar 7th, 2006
 

Hi Arun,

   We can do it using oncopy and onpaste events

if you want to restrict the user to paste data in to text area we can write like this

<textarea  onpaste="return false;">copy and paste it</textarea>

if you want to restrict the user to copy data from the text area we can write like this

<textarea  oncopy="return false;">copy and paste it</textarea>

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions