Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-23-2007, 07:51 PM   PM User | #1
Slpixe
New to the CF scene

 
Join Date: Dec 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Slpixe is an unknown quantity at this point
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
Slpixe is offline   Reply With Quote
Old 12-23-2007, 08:21 PM   PM User | #2
GJay
Senior Coder

 
Join Date: Sep 2005
Posts: 1,791
Thanks: 5
Thanked 36 Times in 35 Posts
GJay is on a distinguished road
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
GJay is offline   Reply With Quote
Old 12-23-2007, 08:51 PM   PM User | #3
Slpixe
New to the CF scene

 
Join Date: Dec 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Slpixe is an unknown quantity at this point
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.
Slpixe is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:05 AM.


Advertisement
Log in to turn off these ads.