How to disable auto-completion on forms

  • Adding autocomplete off to form element. <form method="post" action="/form" autocomplete="off"> PS: The browser still have ability to override this action, if a user is OK with it. source

  • Adding autocomplete to input elements, and randomizing its attribute values <input type=[type] autocomplete="$random">. Random non-supported value, makes the browser giving up to ask users to agree. Autocomplete valid attributes

  • IN addition, you may need to disable spellcheck="false" or autocorrect="off|on". Autocorrect is available for Safari Browsers.

  • Some more popular Questions about this feature:

Show Comments