TIL Stop users from copying input
POSTED ON:
I noticed I couldn't copy my credit card number within a bank form.
Their solution was pretty interesting.
Notice these?
oncopy="return false"
onpaste="return false"
Pretty interesting.
This is similar to the HTML onclick
, where you can tie a function to it.
Related TILs
Tagged: webdev