Chrome: On pressing Enter on a Textbox of a <form> Submits page without calling onClick of submit bu

Posted by X-eCuTeR on Stack Overflow See other posts from Stack Overflow or by X-eCuTeR
Published on 2010-06-04T06:31:38Z Indexed on 2010/06/04 6:39 UTC
Read the original article Hit count: 344

Hi Folks,

I have a scenario in which I have 2 Submit Buttons in a form for going back and forward.

Both the buttons have different JavaScript associated with it. It is working great if we press these buttons to navigate.

But when in Google Chrome, when someone press enter on any of the text box within the Form it does not calls the onClick of the button.

Is there any work around for that.

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html