PDA

View Full Version : Google search box



jc_gmk
01-23-2008, 12:42 PM
On google's home page the searchbox allows you to start typing the moment you load the page (without putting your cursor in the box).

Does anyone know how this is done? Presumably using Javascript?

Nile
01-23-2008, 01:01 PM
I forgot how to do that, but I have it written down somewhere so once I find that, ill post up here.

thetestingsite
01-23-2008, 02:56 PM
Probably not the best way to do it, but this should work:



<body onload="document.FORM_NAME.ELEMENT_NAME.focus();">


Hope this helps.