|
-
Jun 19th, 2002, 03:59 PM
#1
Thread Starter
Addicted Member
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
-
Jun 20th, 2002, 03:51 AM
#2
Fanatic Member
Does it work when you do this?
Code:
<LABEL for="name" onclick="document.getElementById('name').focus()>Name:</LABEL>
<INPUT TYPE="text" id="name">
-
Jun 20th, 2002, 07:52 AM
#3
Thread Starter
Addicted Member
Sorry just read you post
Thanks i'll try this......I'me using Netscape 4.6
-
Jun 20th, 2002, 08:06 AM
#4
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|