Reputation: 297
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.
<input type="submit">
so by default it
need to submit by pressing enter as usally happens in all websitesAny help or explanation about this question is appreciated
EDIT
just enter a wrong email and password
if u press enter: there is no red color error message of wrong email and password
if u click submit:there is a red color error message of wrong email and password
Upvotes: 0
Views: 289
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