To visionjinx's response, I would add that, if you're using the standard SearchControl, you can call searchControl.input.focus() to put the cursor in the search box.
Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On Feb 7, 2010, at 2:08 AM, Vision Jinx wrote: > Hi, > > Just give the input box focus > > eg. > > for this form > > <form name="myform"> > <input type="text" name="q" /> > </form> > > you can use something like > > window.onload=function(){ > document.myform.q.focus(); > }; > > > Cheers! > Vision Jinx > > On Feb 7, 12:33 am, Dan <[email protected]> wrote: >> Does anyone know how to make the cursor automatically appear in the >> search box on page load? (like the google.com site) >> This would save the step of clicking on the search box. >> Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Google AJAX APIs" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
