Latest web development tutorials

HTML DOM Input Email form properties

Input Email Object Reference Input Email Object

Examples

Back <input type = "email"> form element belongs id:

var x = document.getElementById ( "myEmail") form.id.;
x The output is:
myForm

try it"

Definition and Usage

form property returns a reference to the form that contains the email field.

This property returns the form object success.

Note: This property is read-only attribute.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support form properties

Note: Internet Explorer 9 (and earlier versions of IE), or Safari browser does not support type = "email" in the HTML <input> elements.


grammar

emailObject .form

technical details

return value: Email field contains a reference to the form elements. If the email field is not in the form, return null.


Input Email Object Reference Input Email Object