I just discovered something by accident in my code. It seems FireFox will trigger the onClick event for a submit button even if the FORM element is submitted via the Return Key:
<input type="submit" value="Save" onclick="alert('This will fire in FireFox');" />
I think this is really cool, though not sure if it is a bug or a feature. Internet Explorer (IE) on the other hand, does not perform this action.
Want to use code from this post? Check out the license.