I'm having trouble with events in Internet Explorer 7
When I have a form with TWO+ input[type=text] and I press Enter key the events occurs in this order:
- submit button, onClick
- form, onSubmit
Sample code:
<FORM onSubmit="{alert('form::onSubmit'); return false;}">
<INPUT TYPE="text">
<INPUT TYPE="text">
<INPUT TYPE="submit" onClick="{alert('buttom::onClick');}">
</FORM>
BUT...
If a have only ONE input[type=text] and I press Enter key the submit button onClick event DOESN'T FIRES. Sample code:
<FORM onSubmit="{alert('form::onSubmit'); return false;}">
<INPUT TYPE="text">
<INPUT TYPE="submit" onClick="{alert('buttom::onClick');}">
</FORM>
Any Ideas?