HTML | DOM Input Email maxLength Property
The Input Email maxLength property in HTML DOM is used to set or return the value of maxlength attribute of a Email Input Field. It specifies the maximum number of characters that have been allowed in the email field. The default value of Input Email maxLength property is 524288.
- It returns the Input Email maxLength property.
- It is used to set the Input Email maxLength property.
emailObject.maxLength = number
Property Values: It contains single value number which is used to specify the maximum number of characters that are allowed in the Email maxlength Field.
Return Value: It returns a numeric value which represents the maximum number of character that have been allowed in the Email maxlength field.
Example 1: This example illustrate how to return the Input Email maxLength property.
Before clicking on the Button::
After clicking on the Button:
Example 2: This example illustrate how to set Input Email maxLength property.
Before Clicking on Button:
After Clicking on Button:
Supported Browsers: The browser supported by DOM input Email maxLength property are listed below:
- Google Chrome
- Internet Explorer