How to disable copy paste and autocomplete for an HTML textbox

Use the following events :

  • onCopy
  • onPaste
  • onDrag
  • onDrop
  • Autocomplete

Like this :

<INPUT size=12 name=”FundsTransferTo” maxlength=12 onCopy=”return false” onDrag=”return false” onDrop=”return false” onPaste=”return false” autocomplete=off>

Source


Leave a Reply