AmitDiwan has Published 11367 Articles

HTML DOM Input Email Object

AmitDiwan

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 ... Read More

HTML DOM Input Email pattern Property

AmitDiwan

AmitDiwan

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

265 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 ... Read More

HTML DOM Input Email placeholder Property

AmitDiwan

AmitDiwan

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

83 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 ... Read More

HTML DOM Input Email readOnly Property

AmitDiwan

AmitDiwan

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

56 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 ... Read More

HTML DOM Input Email size Property

AmitDiwan

AmitDiwan

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

63 Views

The HTML DOM Input Email size property returns/sets the size property for input Email. If not defined, this property returns ‘20’.SyntaxFollowing is the syntax −Returning size attributeinputEmailObject.sizeSet size property to a numberinputEmailObject.size = numberExampleLet us see an example of Input Email size property − Live Demo Input Email size ... Read More

HTML DOM lang Property

AmitDiwan

AmitDiwan

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

67 Views

The HTML DOM lang property returns/sets a string depicting a language code such as ‘en’ for ‘english’ of the element’s content.SyntaxFollowing is the syntax −Returning language codeHTMLElementObject.langSetting lang attribute to a language codeHTMLElementObject = ‘lang_code’ExampleLet us see an example for HTML DOM lang property − Live Demo HTML DOM ... Read More

HTML DOM lastChild Property

AmitDiwan

AmitDiwan

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

49 Views

The HTML DOM lastChild property returns the last element node as node object of the specified node.NOTE − This property does not ignore text and comment nodesSyntaxFollowing is the syntax −Returning lastChild nodenodeList.lastChildExampleLet us see an example for HTML DOM lastChild property − Live Demo HTML DOM lastChild ... Read More

HTML DOM lastElementChild Property

AmitDiwan

AmitDiwan

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

39 Views

The HTML DOM lastElementChild property returns the last element node as node object of the specified node.NOTE − This property does ignore text and comment nodesSyntaxFollowing is the syntax −Returning lastElementChild nodenodeList.lastElementChildExampleLet us see an example for HTML DOM lastElementChild property − Live Demo HTML DOM lastElementChild   ... Read More

HTML DOM lastModified Property

AmitDiwan

AmitDiwan

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

48 Views

The HTML DOM lastModified property returns the date and time the current document was last modified.SyntaxFollowing is the syntax −Returning date and time −document.lastModifiedExampleLet us see an example for HTML DOM lastModified property − Live Demo HTML DOM lastModified    form {       width:70%;     ... Read More

HTML DOM Legend form Property

AmitDiwan

AmitDiwan

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

83 Views

The HTML DOM Legend form property returns the reference of enclosing form for Legend tag.SyntaxFollowing is the syntax −Returning reference to the form objectlegendObject.formExampleLet us see an example for Legend form property − Live Demo Legend form    form {       width:70%;       margin: ... Read More

Advertisements