View Full Version : Question:Googles onload code

12-23-2007, 07:51 PM
Hey all.

I just spent the last hour breaking down googles homepage code to try and work out there onload procedure. and i think ive knocked it down to that it uses an image above the edit box, and then runs some imbedded <script> to run the procedure.

Does anyone have any simple code to focus the edit box without using javascript (note googles site does not use javascript)

Thanks in advance

12-23-2007, 08:21 PM
when I go to google.com with javascript turned off, the search-box doesn't get focus...

12-23-2007, 08:51 PM
thats really strange,, cause mine always works, and when ever i see the javascript onload code's on sites, they never work for me, javascript on or off.

and like i said, i looked through googles code, and it seams to use a nav icon graphic and some script functions to use the focus.

but i can't cut down googles code enough to just get the code relevent to the focus.