Entry
How can I get the Safari browser to remember the recent search strings of a search field?
Nov 10th, 2007 05:09
Filipp Lepalaan, http://weblogs.mozillazine.org/hyatt/archives/2004_07.html#005890
Make sure that:
- the input element is of type "search"
- it has a "results" attribute with a numeric value e.g. 'results="5"'
- it has an autosave attribute with some value, eg 'autosave="mysite"'
The search string is registered when the search form is submitted. If you have an "onsubmit"
handler set for the form, make sure it returns true, otherwise the search string will not be
saved.