Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
09-13-2008, 02:09 AM #1
- Join Date
- Sep 2008
- Thanked 0 Times in 0 Posts
IE6 fires unexpectedly 'onclick' when pressing ENTER
I have produced an simple example!
Click to input field and press ENTER. It fires Click on Button 1.
How to prevent this ?
Detecting event.keyCode == 13 -> event.returnValue = false doesn't help some times (when I have lots of working event handlers same time), it still fires button.
Where IE stores reference to this button ? Maybe it's possible set NULL to this reference or what if I want fire another button instead first one ?