Disable Auto Save Password In HTML Form Or TextBox
Posted by in Javascript January 30, 2012 Leave a comment

This article simply shows How to Disable Auto Save Password or in other words, we can call Turn Off Form Auto-completion. This feature is a convenience way for almost users to avoid remembering their passwords all the time.

However, for security reasons developers and project managers would like to disable the feature in order to protect their users from be lost sensitive data especial with password to login to their bank account or hosting/domain control panel.

There are 2 ways to disable auto save password feature: entire form or a particular field. Simply use this attribute in form or text box element:

autocomplete = "off"

Turn Off Autocompletion Feature For A Textbox

Example below set value of AUTOCOMPLETE attribute to off to disable the AutoComplete feature for a password field.

<input type="password" id="txtPassword" name="txtPassword" AUTOCOMPLETE="off"></input>

Turn Off Autocompletion Feature For Entire Form

Example below disable the AUTOCOMPLETE feature for entire form

<form AUTOCOMPLETE="off" id="form1" name="form1" action="">

Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at hoan@4rapiddev.com