Attribute for <INPUT ...>
AUTOCOMPLETE =
ON
| OFF
Usage Recommendation |
use it, but don't rely on it |
Autocompletion, which was first introduced by Microsoft Internet Explorer, is the browser feature of remembering what you entered in previous text form fields with the same name. So, for example, if the field is named name and you had entered several variants of your name in other fields named name, then autocompletion provides those options in a dropdown. This image shows autocompletion being used in a form field:
Generally autocompletion is a useful browser feature, but occasionally it can be harmful. If the form field contains information such as a credit card number that should be left stored on the user's hard drive then you should turn autocompletion off. You can turn it off by setting AUTOCOMPLETE
to OFF
:
this code |
produces this |
name: <INPUT NAME="name" SIZE=40 AUTOCOMPLETE=OFF>
|
|