Hi Dan, A small note to setting input.focus(): if you do that in Firefox in the onload, it only works if you make use of a timeout...:
function setcursor() { document.getElementById('input').focus(); } setTimeout('setcursor()',200); Cheers, Ruben On Feb 7, 6:01 pm, Dan <chy...@gmail.com> wrote: > Thank you both so much for responding. > I tried searchControl.input.focus() and it worked perfectly. > So awesome. > Thanks again for helping a newb. > > On Feb 7, 3:23 am, Jeremy Geerdes <jrgeer...@gmail.com> wrote: > > > 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 > > jrgeer...@gmail.com > > > 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 <chy...@gmail.com> 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 > > > google-ajax-search-...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-ajax-search-api+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://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 google-ajax-search-...@googlegroups.com. To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.