Anonymous
Anonymous

Reputation: 297

Form is not submitted on pressing Enter key but submiited onclicking submit button

This may be silly but i really want to know about this, not only me this may be question a from thousands of students.

The following link is my university website LINK

there is a login panel. after entering my username & password if i click enter then page reloads but the expected behaviour is to submit the form.
To actually login into this website you need to click on submit button.

Can anyone explain me about this.

Any help or explanation about this question is appreciated


EDIT
just enter a wrong email and password

  1. if u press enter: there is no red color error message of wrong email and password

  2. if u click submit:there is a red color error message of wrong email and password

Upvotes: 0

Views: 289

Answers (1)

Vlas Bashynskyi
Vlas Bashynskyi

Reputation: 2013

The default behaviour is that when input with type submit is present in the form, the form will get sumitted upon click on the button, or enter key press when some form control has focus. Since controls on your site are not inside of form the expected behaviour will not be seen.

Upvotes: 1

Related Questions