Javascript Focus Event on Google Search Homepage

document.f.q.focus() – When you load up your browser with Google as your homepage the cursor will jump to the search box in Google as soon as the page finishes loading. This is thanks to a JavaScript snippet added by Google to stop people using the address bar and make them use the search box instead.

Novice users often don’t look at the position of the cursor and simply start typing a url into the search box and hit enter. Google will display the search results and normally the user will find the url they were looking for at the top and happily click on it. Link.

Find this article at: http://www.labnol.org/internet/search/javascript-focus-event-on-google-search-homepage/1526/

, Internet, Search



Google Custom Search