English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
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 ‹/›
IEFirefoxOperaChromeSafari
In addition to Opera, other mainstream browsers support the autocomplete attribute.
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.
The autocomplete attribute is an HTML5 of the new attribute.
<form autocomplete="on|off">
Value | Description |
---|---|
on | Default. Specify the enable auto-complete feature. The browser will automatically complete values based on the user's previous input. |
off | Specify 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. |