Results 1 to 4 of 4

Thread: Label Tags

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150

    Label Tags

    Hi all,

    I am using label tags to put the focus in a textbox while pressing on the text between the label tag

    Like this:

    <code>
    <LABEL for="name">Name:</LABEL>
    <INPUT TYPE="text" id="name">
    </code>

    So in IE when i press on Name:, it put the focus in the textBox.

    It just doesn't take effect in Netscape

    Does anybody knows if we have to do something different in order to do that with Netscape

    Thanks

  2. #2
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    Does it work when you do this?

    Code:
     
    <LABEL for="name" onclick="document.getElementById('name').focus()>Name:</LABEL> 
    <INPUT TYPE="text" id="name">
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150
    Sorry just read you post

    Thanks i'll try this......I'me using Netscape 4.6

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150
    Nope it doesn't work

    It must be because my version is 4.6 and the label tags are not supported.

    If you have an idea please let me know

    Thanks for your help

Posting Permissions

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



Click Here to Expand Forum to Full Width