<form autocomplete=off>
<input type=text name=name autocomplete=off>
Live Demo
The Low Down
For browsers with a form complete feature, the autocomplete feature can prevent a specific field from being auto-filled. Example: a form might ask for a pet's name. It is likely that the field will auto-fill incorrectly and cause problems.
- There will be no visual difference between supported and unsupported browsers.
- For browsers with a form complete feature but without support the
autocomplete attribute, the field could still be auto-filled. Irrelevant (N/A) for browsers without a form complete feature (e.g. Mobile Safari)
- Values are "on" and "off"
- Spec says to default to "on"
- Possibly useful for extra security on password fields
- Seems to even prevent things like 1Password
- Safari 5.1 didn't support this attribute but Safari 5.2 does.
- Somewhere between Chrome 11 and Chrome 17 (tested 17) Chrome started supporting this attribute.
|