autocomplete

Jump to: navigation, search

autocomplete

This page has been flagged with the following issues:

High-level issues:


W3C Candidate Recommendation

Summary

The autocomplete attribute specifies whether a browser should automatically provide values for a form element.


Applies to HTMLInputElement

When autocomplete is on, the browser may automatically fill previously entered values, or match input names with values the user has provided.

For sensitive information or form content that is not repeated, autocomplete should be turned off so the user is forced to fill the field every time.

Autocomplete should also be turned off if the website provides its own mechanism for filling a field; for example, an autocomplete like shown in this site's search.

Valid values for autocomplete are on or off. The attribute is not required.

Examples

This example uses the AUTOCOMPLETE attribute to disable the AutoComplete feature.

HTML

<input type="password" autocomplete="off">

The following example shows an HTML form with autocomplete on. One of the inputs ha autocomplete off.

HTML

<form action="submit.php" autocomplete="on">
  First name:<input type="text" name="name">
Last name: <input type="text" name="surname">
E-mail: <input type="email" name="email" autocomplete="off">
<input type="submit"> </form>



Related specifications

Specification Status Related Changes
HTML5 W3C Candidate Recommendation

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related articles

HTML







  • autocomplete












































… further results

Security



  • autocomplete



Related pages (MSDN)

  • input type=password
  • input type=text
  • form

html/elements/input/password html/elements/input/text html/elements/form

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]