Send to a Friend

makemo's avatar

JavaScript: How to target & set focus on a text input field?

Asked by makemo (531points) April 25th, 2008

I recently registered an new domain and with it, I got this Google Apps startpage for my domain.

Probllem is, that when I open a new Google search start page, the text input field never gets focused, as it did when I was using the generic Google seach page (iGoogle).

So I’m trying to figure out a JavaScript to locate the specific target element for that text (search) field and add it in the start page URL, so that I can just type away without having to actually click in the text input field, each time I open a new start page.

I’m highly new to JavaScript, so any help would be much appreciated. FWIW my startpage is http://start.henrikcederblad.com/ (I don’t know if its viewable by the public, but I think it is, yes?).

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.