English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <form> autocomplete Eigenschaft

Die autocomplete-Eigenschaft spezifiziert, ob das Formular die Autovervollständigungsfunktion aktivieren oder deaktivieren soll. Nach Aktivierung der autocomplete-Funktion vervollständigt der Browser automatisch die Eingabe basierend auf den zuvor von Benutzer eingegebenen Werten.

 HTML <form> Tag

Online-Beispiel

Formular mit aktivierter Autovervollständigungsfunktion:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML form autocomplete Eigenschaft verwenden-Grund教程(oldtoolbag.com)</title>
</head>
<body>
<form action="action_page.php" method="get" autocomplete="on">
  Vorname:<input type="text" name="fname"><br>
  E-mail: <input type="email" name="email"><br>
  <input type="submit">
</form>
<p>füllen und senden Sie das Formular aus, laden Sie dann die Seite neu und beginnen Sie erneut mit dem Ausfüllen des Formulars-und betrachten Sie den Mechanismus von autocomplete. Versuchen Sie dann, die Funktion von autocomplete auf "aus" zu stellen.</p>
</body>
</html>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

In addition to Opera, other mainstream browsers support the autocomplete attribute.

Definition and Usage

The autocomplete attribute specifies whether the form should enable or disable the auto-complete feature.
After enabling the autocomplete feature, the browser will automatically fill in the form based on the user's previous input.
Tip: You can set the form's "auto-complete" to "on", and set the auto-complete of a specific input field to "off", and vice versa.

HTML 40.01 between5difference

The autocomplete attribute is an HTML5 of the new attribute.

Syntax

<form autocomplete="on|off">

Attribute Value

ValueDescription
onDefault. Specify the enable auto-complete feature. The browser will automatically complete values based on the user's previous input.
offSpecify the disable auto-complete feature. The user must enter a value into each field each time, and the browser will not automatically complete the input.
 HTML <form> Tag