Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question:Googles onload code

    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

  • #2
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    when I go to google.com with javascript turned off, the search-box doesn't get focus...
    My thoughts on some things: http://codemeetsmusic.com
    And my scrapbook of cool things: http://gjones.tumblr.com

  • #3
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •