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

How is it different from adding the autofocus property to input field?
Didn't know that. I'll add it now. Thanks!