Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
crispynugget
· 12y ago · 0 comments
looks good.. you can also add OnLoad="document.FORMNAME.search.focus();" to your beginning <body> element to auto-select the input field, google-style. FORMNAME being the name of your form.
Comments
[–]
karangoeluw
12y ago
How is it different from adding the autofocus property to input field?
[–]
rukmal-w
12y ago
Didn't know that. I'll add it now. Thanks!