I have a form in one of my pages that I want to prevent it being filled by the Autocomplete(Google Docs, Last Pass, etc.) I know the user can turn off the autocomplete by themselves, however, it is hard to make sure all customer do this so I wonder if there is a way to make the form unfillable by the browser(modify the html code, javascript, etc..)
Asked
Active
Viewed 165 times
3 Answers
0
turn off autocomplete on the form element
<form autocomplete="off">
Although alot of browsers ignore this flag, so a way to prevent that would be to dynamically add readonly
to the inputs and remove it on click.

thepi
- 342
- 2
- 12
0
you can use the attribute autocomplete ='off' in your form tag or any particular input tags.

setCodesToFire
- 49
- 9