YouTip LogoYouTip

Prop Email Form

# Input Email form Property [![Image 8: Input Email Object Reference](#) Input Email Object](#) ## Example Return the id of the form that contains the element: ```javascript var x = document.getElementById("myEmail").form.id; The _x_ output is: myForm [Try it Yourself Β»](#) * * * ## Definition and Usage The form property returns a reference to the form that contains the email field. On success, this property returns a form object. **Note:** This property is read-only. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The form property is supported by all major browsers. **Note:** Internet Explorer 9 (and earlier IE versions), or Safari browsers do not support the HTML element with type="email". * * * ## Syntax _emailObject_.form ## Technical Details | Return Value: | A reference to the form element that contains the email field. Returns null if the email field is not in a form. | | --- | * * Input Email Object](#)
← Prop Email MaxlengthProp Email Disabled β†’