Issue with "<form>": describe running javascript on submit: onsubmit
and javascript pseudo-protocol
#7142
Labels
closed: wontfix
Out of scope, too much effort, or working as intended
Content:HTML
Hypertext Markup Language docs
MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form
What information was incorrect, unhelpful, or incomplete?
I have been reading Stack Overflow for solutions to have a form run run javascript without refreshing the page. This is achieved by returning a javascript function in
onsubmit
, then the javascript function has to return false? https://stackoverflow.com/a/16262814Also there is a method to do
action="javascript:function()"
that probably should be documented.There is also the solutions here https://stackoverflow.com/questions/12694984/make-form-run-a-javascript-function?noredirect=1&lq=1
Specific section or headline?
Attributes?
MDN Content page report details
en-us/web/html/element/form
The text was updated successfully, but these errors were encountered: