As a web developer of questionable frontend skills, it kinda looks like something you’d do as a band-aid solution if you had no idea how forms work or how to suppress their default events, which do happen to include the enter key being pressed. Really wild to go about it that route, whatever the intention was lol.
Edit: While typing my other response down this comment thread, I realized for this to happen the developer must have actually suppressed the event correctly so it’s even weirder they chose to handle it like this
This is what happens, if someone angers the web dev 😜
Probanly didn’t get paid or contradicting instructions.
Edit: While typing my other response down this comment thread, I realized for this to happen the developer must have actually suppressed the event correctly so it’s even weirder they chose to handle it like this
Probably users were submitting the form too early or something, either way I agree this is a bit of an unusual way to handle this lol