Input Email form Attribute

Definition and Usage

form This property returns a reference to the form containing the email field.

This property returns the form object on success.

Note:This property is read-only.

Example

Returns the id of the form containing the <input type="email"> element:

var x = document.getElementById("myEmail").form.id;

Try It Yourself

Syntax

emailObject.form

Technical Details

Return Value:

Reference to the form element containing the email field.

If the email field is not in the form, it returns null.

Browser Support

The numbers in the table indicate the first browser version that fully supports this property.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support 10.0 Support Support Support