You are here: Reference > HTML > attributes > autosave (input:search)

autosave attribute (input:search)

Browser support:
Specifies the name of a category in the search history.
All searches in the input:search field are saved into the search history, under the category specified by the autosave attribute. If the autosave attribute of two different search tags contain identical values, the searches belonging to these fields are saved under the same category of the history.
Use unique category names (for example, the domain where the site is) to avoid the mixing of categories. If the autosave attribute is not defined, then the history dropdown list is invisible, and the searches are not saved in the history.

Possible values:

String that sets the name of the category.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the archive attribute:
<input type="search" autosave="google" />
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content