Input Email form property
Example
Return The form id to which the element belongs:
var x = document.getElementById("myEmail").form.id;
x
The output is:
myForm
Try it »
Definition and Usage
The form property returns a reference to the form that contains the email field.
On success, this attribute returns the form object.
**Note:** This property is read-only.
Browser support





All major browsers support the form attribute
Note: Internet Explorer 9 (and earlier IE versions) or Safari browser does not support the HTML element with type="email". .
Syntax
emailObject
.form
Technical Details
| Return Value: | A reference to the form element containing the email field. If the email field is not in a form, returns null. |
|---|
Input Email Object