View Full Version : IE6 fires unexpectedly 'onclick' when pressing ENTER

09-13-2008, 01:09 AM
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 ?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum