среда, 19 августа 2009 г.

Using autocomplete in HTML

Attribute for
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:

Image of text field with autocompletion

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:

Комментариев нет: