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?
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.
Probably not the best way to do it, but this should work:
Hope this helps.Code:<body onload="document.FORM_NAME.ELEMENT_NAME.focus();">
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Bookmarks