Enter Key not working in button Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Enter Key not working in button without wasting too much if your time.

The question is published on by Tutorial Guruji team.

i’m using button key for my project but this is not work when i push Enter Key. why ‘enter key’ not working in this form?

<form action="" method="post">
<input type="text" >
<input type="button" >

how this is work with javascript, plz help me

i will not sue type="submit"


It seems you want implicit submission:

A form element’s default button is the first submit button in tree order whose form owner is that form element.

If the user agent supports letting the user submit a form implicitly (for example, on some platforms hitting the “enter” key while a text field is focused implicitly submits the form), then doing so for a form whose default button has a defined activation behavior must cause the user agent to run synthetic click activation steps on that default button.

Therefore, the button must be a submit button, not a button in button state:

<input type="submit">
We are here to answer your question about Enter Key not working in button - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji