You can't do it with only PHP. You need some JavaScript to do it. You have
to set up an onload listener which will then find the input and focus on
it. Beyond that, it's tough to tell you exactly what to do without more
details. And also, given that the Local and Web Search APIs have now been
officially discontinued, I would seriously question if it's worth investing
any additional time in developing a solution, even based on the remaining
portions of what used to be called the AJAX Search API.

jg

On Fri, Oct 3, 2014 at 5:11 PM, Blair Carriere <[email protected]>
wrote:

> How can this be accomplished in PHP?
>
> On Sunday, 7 February 2010 00:33:17 UTC-7, Dan 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]
> To view this message on the web, visit
>
> https://groups.google.com/d/msgid/google-ajax-search-api/0491de7a-d46c-4804-b1e4-1912c3b2b8b1%40googlegroups.com
> <https://groups.google.com/d/msgid/google-ajax-search-api/0491de7a-d46c-4804-b1e4-1912c3b2b8b1%40googlegroups.com?utm_medium=email&utm_source=footer>
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Google AJAX APIs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan
Church!
http://www.debraheightswesleyan.org

-- 
-- 
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]
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/CAF4cwg_4QqZK9tUJicsqe7eUPXK%2B6F%2BEeAiyWVc3js9%3DP6uPdw%40mail.gmail.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to