autocomplete attribute

autocomplete=on/off

Explanation

Autocomplete attribute is used to display the values/texts in input field, which were previously entered by the user.
The default value of this attribute is "on".

Example Code:

Result :

Enter your name:
Contact Num:
Email ID:
  • It can be compared with the auto prediction process.
  • The previously entered values were stored in "cache" of browser. When user enters value in input field, the browser automatically displays the values.
  • It is not possible to use both the "on/off" options for an input field i.e. it can be activated/decativated.
  • It works with <form> and also with the "Input Type Attributes" like email, search, tel, url, text, range and color.

Limitations:

It will function in all the major web browsers.

Ask Questions

Ask Question