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?
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.