Input Submit form Attribute
Definition and Usage
form
The property returns a reference to the form containing the submit button.
This property returns the form object on success.
Note:This property is read-only.
Example
Return the id of the form containing the <input type="submit"> element:
var x = document.getElementById("mySubmit").form.id;
Γλώσσα
submitObject.form
Τεχνικές λεπτομέρειες
Αποτελεσματική τιμή: |
Αναφορά στο στοιχείο φόρμας που περιέχει το κουμπί υποβολής. Αν το κουμπί υποβολής δεν βρίσκεται στο φόρμα, τότε επιστρέφεται |
---|
Υποστήριξη περιηγητή
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Υποστήριξη | Υποστήριξη | Υποστήριξη | Υποστήριξη | Υποστήριξη |