aris_datuin
asked on
Upon clicking of Tab, focus goes to address bar...
Hi Experts,
I am trying to control the tab key to go to the next textbox...
However as I focus on my first textbox during OnLoad and then press Tab key, instead of going to my 2nd textbox, it goes to the address bar...
May I ask how to solve this...? A sample code would be best...
Thanks in advance experts...! =)
I am trying to control the tab key to go to the next textbox...
However as I focus on my first textbox during OnLoad and then press Tab key, instead of going to my 2nd textbox, it goes to the address bar...
May I ask how to solve this...? A sample code would be best...
Thanks in advance experts...! =)
ASKER
Also, I have another dillemma on how to control th F3 key so that it can call a javascript fuction anytime... Right now, I have onKeyPressed on my first textbox... But if the focus is on another object, it is not working unless I also put onKeyPressed on all of my objects... However, if none of my objects is in focus, how will I control the F3 key...?
Thanks in advance again...! =)
Thanks in advance again...! =)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
have u used "document.onkeydown" event & "focus()" function in javascript ?
ASKER
It is working now...! Thanks... =)
Have this:
<input type="text" tabindex="2"> for your second text box, although it should work without that...
Regards,
Zyloch