AmitDiwan has Published 10740 Articles

HTML DOM Input Email placeholder Property

AmitDiwan

AmitDiwan

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

165 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

138 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

140 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 Legend form Property

AmitDiwan

AmitDiwan

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

143 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

HTML DOM Legend Object

AmitDiwan

AmitDiwan

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

144 Views

The HTML DOM Legend Object in HTML represents the element.SyntaxFollowing is the syntax −Creating a elementvar legendObject = document.createElement(“LEGEND”)PropertiesHere, “LegendObject” can have the following properties −PropertyDescriptionformIt returns a reference of enclosing form that contains the legend elementExampleLet us see an example for Legend form property − Live Demo ... Read More

HTML DOM length Property

AmitDiwan

AmitDiwan

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

195 Views

The HTML DOM length property returns a number corresponding to the nodes in node list object.SyntaxFollowing is the syntax −Returning number of nodes in nodeList Object.nodeList.lengthExampleLet us see an example for HTML DOM length property − Live Demo HTML DOM length    form {       width:70%; ... Read More

HTML DOM li Object

AmitDiwan

AmitDiwan

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

168 Views

The HTML DOM Li Object in HTML represents the element.SyntaxFollowing is the syntax −Creating a elementvar liObject = document.createElement(“LI”)PropertiesHere, “LiObject” can have the following properties −PropertyDescriptionvalueIt returns/sets the value of the value attribute of a elementExampleLet us see an example for Li value property − Live Demo ... Read More

HTML DOM li value Property

AmitDiwan

AmitDiwan

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

186 Views

The Li value property returns/sets the value of the value attribute of a element.SyntaxFollowing is the syntax −Returning value of the value attributeliObject.valueValue of the attribute value setliObject.value = ‘string’Let us see an example for Li value property −Example Live Demo HTML DOM value    form ... Read More

HTML DOM Link disabled Property

AmitDiwan

AmitDiwan

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

167 Views

The HTML DOM Link disabled property sets/returns whether element is enabled or disabled.SyntaxFollowing is the syntax −Returning boolean value - true/falselinkObject.disabledSetting disabled to booleanValuelinkObject.disabled = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the is disabled.falseIt defines that the is not disabled and it is also the ... Read More

HTML DOM Link href Property

AmitDiwan

AmitDiwan

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

285 Views

The HTML DOM Link href property sets/returns the path/url of a linked document. −SyntaxFollowing is the syntax −Returning href attribute valuelinkObject.hrefSetting href to a stringlinkObject.href = stringBoolean ValuesHere, “string” can be the following −booleanValueDetailspathIt defines the absolute/relative path to a document.urlIt defines the url address of the document to be ... Read More

Advertisements