Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Small Suggestion: Make the search page focus on the searchbar

edited April 2006 in Vanilla 1.0 Help
When you click on the search tab, you should make the text input field focused automatically when the page loads, so people dont have to click and they can start typing immediately

Comments

  • I'll buy that for a dollar!
  • edited March 2006
    google does it like this:

    <script type="text/javascript">function sf(){document.f.q.focus();}</script></head><body onLoad="sf()">...

    Where "f" is the form name and "q" is the search field.

    Personally, I'd stay away from the document.itemname syntax, but it's not a hard change.
  • I want to say that in xhtml, the <body> tag has been flushed of all attributes, especially JS events. I could be wrong though.
  • MarkMark Vanilla Staff
    I can do this very easily. I already do it on the sign in form.
  • did you add it to your test forum vanilladev yet? it doesnt work
  • MarkMark Vanilla Staff
    Done
This discussion has been closed.