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

results attribute (input:search)

Browser support:
Specifies how many elements are visible in the dropdown list of the search history.

Possible values:

Integer that sets the number of elements in the dropdown box. If the value is zero or negative, the dropdown box will not be visible.
Default: 10.

Example HTML code 1:

This example illustrates the use of the results attribute:
<ol>
    <li>Initialize more than 4 searches (type any string into the search field than hit the 'enter' key) </li>
    <li>When you are done, please visit the recent searches, where only the last 3 searches will be visible</li>
</ol>
<input type="search" results="3" />
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content