Y
Hacker News
new
|
ask
|
show
|
jobs
by
crispynugget
4436 days ago
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.
2 comments
karangoeluw
4436 days ago
How is it different from adding the autofocus property to input field?
link
rukmal-w
4436 days ago
Didn't know that. I'll add it now. Thanks!
link