Search_Box
behavior examples and demosShowcased here are some possible implementations of various search boxes and their onfocus
and onblur
behavior. Everything is done using the Search_Box
constructor. Styling is done via CSS only, which gives you maximum flexibility.
You can find detailed explanations in the blog post which also contains links to the fully documented source (which in turn contains even more implementation details).
Line wraps inside code blocks are marked with »
Now, for some fancy CSS styling and a nice trick for Safari (type="search"
, courtesy of Marko Dugonjić).