npm.io
2.0.0 • Published 7 years ago

form-request-submit-polyfill

Licence
MIT
Version
2.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
65

<form>.requestSubmit() polyfill

form.requestSubmit([submitter])

Requests to submit the form. Unlike submit(), this method includes interactive constraint validation and firing a submit event, either of which can cancel submission.

The submitter argument can be used to point to a specific submit button, whose formaction, formenctype, formmethod, formnovalidate, and formtarget attributes can impact submission. Additionally, the submitter will be included when constructing the entry list for submission; normally, buttons are excluded.

References


Distributed under the MIT license. See LICENSE for details.

2019 Javan Makhmali

Keywords