Need a HTML Geek!!!

Discussion in 'Web Development & Web Hosting' started by ManicD, Jun 16, 2008.

  1. ManicD

    ManicD Byte Poster

    237
    4
    34
    Ok, trying to add a google search box into our website home page, got the box, got the format, need to get the text box so when the page loads the cursor is aready in teh box to start typing (like the google homepage does).

    I've tried hunting through the source code of teh google home page, no avail.


    help me PLEEEEEASE!!!!
     
    Certifications: MCSA, N+, A+(Tech), ECDL
    WIP: 70-294, 70-298
  2. ThomasMc

    ThomasMc Gigabyte Poster

    1,507
    49
    111
    I dont think its the HTML that is doing it though maybe try looking at JavaScript - Focus on Load

    Like So
     
    Certifications: MCDST|FtOCC
    WIP: MCSA(70-270|70-290|70-291)
  3. nellyp123

    nellyp123 Byte Poster

    213
    13
    0
    Here is a html search box:

    <form id="myform">
    <input type="text" class="textinput" /> <input class="submit" type="submit" value="Find" />
    </form>
    </div>

    Hope this helped?
     
    Certifications: CIW Professional
  4. nugget
    Honorary Member

    nugget Junior toady

    7,796
    71
    224
    I'm sure that google have the necessary code somewhere on their website for you to use.

    Edit: you can find something like it here.
     
    Certifications: A+ | Network+ | Security+ | MCP (270,271,272,290,620) | MCDST | MCTS:Vista
    WIP: MCSA, 70-622,680,685
  5. dmarsh
    Honorary Member 500 Likes Award

    dmarsh Petabyte Poster

    4,305
    503
    259
    ThomasMc has already answered this question in his post.

    Its a form with a submit button and then you call focus() on the button, either inline or using the page onload event.
     

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.