Input Text autocomplete Property
Definition and Usage
autocomplete
Set property or return the value of the autocomplete property in the text field.
After enabling auto-complete, the browser will automatically complete values based on the user's previous inputs.
Tip:In some browsers, you may need to enable the auto-complete feature to make it work properly (check under "Preferences" in the browser menu).
See also:
HTML Reference Manual:HTML <input> autocomplete గుణం
Example
Example 1
Set the auto-complete of the text field to off:
document.getElementById("myText").autocomplete = "off";
Example 2
return the auto-complete status:
var x = document.getElementById("myText").autocomplete;
Syntax
return autocomplete property:
textObject.autocomplete
set autocomplete property:
textObject.autocomplete = "on|off"
గుణం విలువ
విలువ | వివరణ |
---|---|
ఆన్ | డిఫాల్ట్. బ్రౌజర్ వినియోగదారుడు ముందుగా ఇచ్చిన విలువను ఆధారంగా స్వయంచాలకంగా పూర్తి చేస్తుంది. |
ఆఫ్ | వినియోగదారుడు ప్రతిసారి వాక్యం ఫీల్డ్లో విలువను ప్రవేశపెట్టాలి. బ్రౌజర్ స్వయంచాలకంగా పూర్తి చేయదు. |
సాంకేతిక వివరాలు
వాటిని తిరిగి ఇవ్వబడింది: | స్ట్రింగ్ విలువ, స్వయంచాలక పూర్తి స్థితి నిరూపిస్తుంది. |
---|
బ్రౌజర్ మద్దతు
చ్రోమ్ | ఎడ్జ్ | ఫైర్ఫాక్స్ | సఫారీ | ఒపెరా |
---|---|---|---|---|
చ్రోమ్ | ఎడ్జ్ | ఫైర్ఫాక్స్ | సఫారీ | ఒపెరా |
మద్దతు | మద్దతు | మద్దతు | మద్దతు | మద్దతు |