Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML - use of the onbeforesubmit attribute

Tags:

html

forms

submit

I recently found a form event attribute called onbeforesubmit which processes a given function/request before the form is actually submitted.

While I found it to be useful, seems strange to me almost no 'official' documentation is found about this event attribute, with a vague reference to a Microsoft web page and some forums. No w3schools or w3 reference about it (not as far as I have looked up).

Is it a very old/deprecated event attribute or maybe an experimental one? I have tested it with Google Chrome so far.

like image 507
Julio María Meca Hansen Avatar asked Nov 01 '25 06:11

Julio María Meca Hansen


1 Answers

its an old attribute . Its work can be replaced by onsubmit. you can write code in the manner of you want the execution and cal it on onsubmit

like image 182
Daman Mokha Avatar answered Nov 02 '25 22:11

Daman Mokha