Hi all,
I have a series of form elements, all asp.net controls on a webpage. Especially I have 4 buttons, three of wich do not trigger any validation.
Let's say:
Button1 (as the ok button)
Button2 (as the cancel button)
Button3 and Button4 (as other function buttons)
Problem: When I tab through my controls, Button3 continues to keep focus, therefore if I hit the Enter key, it triggers its click event.
I tried adding javascript to give and keep the focus on Button1. I tried giving tabIndex = 1 only to Button1 and 0 to all the rest. That button doesn't seem to lose it, while I am starting to lose my mind over it.
Still, when I tab through the controls, that button keeps that little blue shade on it.
Any suggestions?
Thanks
(loosing it... loosing it... LOST IT!)
Daren J. Lahey
Just another computer guy...
FAQ183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
Support your forums TODAY!
I have a series of form elements, all asp.net controls on a webpage. Especially I have 4 buttons, three of wich do not trigger any validation.
Let's say:
Button1 (as the ok button)
Button2 (as the cancel button)
Button3 and Button4 (as other function buttons)
Problem: When I tab through my controls, Button3 continues to keep focus, therefore if I hit the Enter key, it triggers its click event.
I tried adding javascript to give and keep the focus on Button1. I tried giving tabIndex = 1 only to Button1 and 0 to all the rest. That button doesn't seem to lose it, while I am starting to lose my mind over it.
Still, when I tab through the controls, that button keeps that little blue shade on it.
Any suggestions?
Thanks
(loosing it... loosing it... LOST IT!)
Daren J. Lahey
Just another computer guy...
FAQ183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
Support your forums TODAY!