Found 2417 Articles for HTML

HTML DOM Input Email required Property

AmitDiwan
Updated on 15-Jun-2020 12:41:16

66 Views

The HTML DOM Input Email required property determines whether Input Email is compulsory to set or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputEmailObject.requiredSetting required to booleanValueinputEmailObject.required = booleanValueBoolean valuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt is compulsory to set the email field to submit form.falseIt is the default value and to set an email field is not compulsory.ExampleLet us see an example of Input Email required property − Live Demo Input Email required    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {   ... Read More

HTML DOM Input Email readOnly Property

AmitDiwan
Updated on 30-Jul-2019 22:30:26

58 Views

The HTML DOM Input Email readOnly property sets/returns whether Input Email can be modified or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputEmailObject.readOnlySetting readOnlyto booleanValueinputEmailObject.readOnly = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input email field is readOnly.falseIt defines that the input email field is not readOnly and can be modified.ExampleLet us see an example of Input Email readOnly property − Live Demo Input Email readOnly    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: ... Read More

HTML DOM Input Email placeholder Property

AmitDiwan
Updated on 30-Jul-2019 22:30:26

85 Views

The HTML DOM Input Email placeholder property sets/returns a string generally used to give hints to user of what the input text will look like.SyntaxFollowing is the syntax −Returning string valueinputEmailObject.placeholderSetting placeholder to stringValueinputEmailObject.placeholder = stringValueExampleLet us see an example of Input Email placeholder property − Input Email placeholder    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } ... Read More

HTML DOM Input Email pattern Property

AmitDiwan
Updated on 30-Jul-2019 22:30:26

270 Views

The HTML DOM Input Email pattern property sets/returns the regular expression corresponding to Email Input. The pattern attribute’s value is checked against the text typed in an email field.SyntaxFollowing is the syntax −Returning regular expressioninputEmailObject.patternSetting pattern to regular expressioninputEmailObject.pattern = ‘RegExp’ExampleLet us see an example of Input Email pattern property − Live Demo Input Email pattern    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="submit"] {       border-radius: 10px; ... Read More

HTML DOM Input Email Object

AmitDiwan
Updated on 30-Jul-2019 22:30:26

68 Views

The HTML DOM Input Email Object represents an input HTML element with type email.SyntaxFollowing is the syntax −Creating an with type emailvar emailObject = document.createElement(“input”); emailObject.type = “email”;AttributesHere, “emailObject” can have the following attributes −AttributesDescriptionautocompleteIt provides suggestions based on previously typed text, if set to ‘ON’autofocusIf set to true the email field is focused upon initial page load.defaultValueIt sets/returns the default value of an email fielddisabledIt defines if an email field is disabled/enabledformIt returns a reference of enclosing form that contains the email fieldmaxLengthIt returns/sets the value of maxLength attribute of an email fieldmultipleIt returns/sets if an email field ... Read More

HTML DOM Input Email name Property

AmitDiwan
Updated on 30-Jul-2019 22:30:26

59 Views

The HTML DOM Input Email name property returns a, which is the value of the name attribute of input Email. User can also set it to a new string.SyntaxFollowing is the syntax −Returning string valueinputEmailObject.nameSetting name attribute to a string valueinputEmailObject.name = ‘String’ExampleLet us see an example of Input Email name property − Live Demo Input Email name    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       ... Read More

HTML DOM Input Email multiple Property

AmitDiwan
Updated on 30-Jul-2019 22:30:26

134 Views

The HTML DOM Input Email multiple property returns/sets if input Email should accept multiple emails or not.SyntaxFollowing is the syntax −Returning reference to the multiple objectinputEmailObject.multipleSet multiple property to boolValueinputEmailObject.multiple = boolValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input email accepts multiple entries.falseIt defines that the input email is not accepying multiple emails and it is also the default value.ExampleLet us see an example of Input Email multiple property − Live Demo Input Email multiple    form {       width:70%;       margin: 0 auto;       text-align: center;   ... Read More

HTML DOM Input Email maxLength Property

AmitDiwan
Updated on 30-Jul-2019 22:30:26

59 Views

The HTML DOM Input Email maxLength property returns/sets the maxLength property for input Email. If not defined this property returns ‘-1’.SyntaxFollowing is the syntax −Returning maxLength attributeinputEmailObject.maxLengthSet maxLength property to a numberinputEmailObject.maxLength = numberExampleLet us see an example of Input Email maxLength property − Live Demo Input Email maxLength    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } ... Read More

HTML DOM Input Email form Property

AmitDiwan
Updated on 30-Jul-2019 22:30:26

64 Views

The HTML DOM Input Email form property returns the reference of enclosing form for input Email.SyntaxFollowing is the syntax −Returning reference to the form objectinputEmailObject.formExampleLet us see an example of Input Email form property − Live Demo Input Email form    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } Email-form Employee Email : ... Read More

HTML DOM Input Email disabled Property

AmitDiwan
Updated on 30-Jul-2019 22:30:26

72 Views

The HTML DOM Input Email disabled property sets/returns whether Input Email is enabled or disabled.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputEmailObject.disabledSetting disabled to booleanValueinputEmailObject.disabled = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input email is disabled.falseIt defines that the input email is not disabled and it is also the default value.ExampleLet us see an example of Input Email disabled property − Live Demo Input Email disabled    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: ... Read More

Advertisements