i have two field one is emailid and another is password in my form. i want to detect that when user reenter the email and password than he should not able to copy the above. he have to write again manually.Just like google forms
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- Laravel Option Select - Default Issue
- How to toggle on Order in ReactJS
- void before promise syntax
You could disable
ctrl+v
combination andright click
as well.for IE, you may tap into following event handlers:
Here is a workaround for all browsers:
In HTML section, your fields would look like:
I don't think user can copy password fields if input type is
password
Hope this helps.
Note:
2020 update
There are
copy
andpaste
events you can use to prevent these actions, or to modify the data being copied or pasted. (see the links for browser support)