AmitDiwan has Published 10744 Articles

HTML DOM scripts Collection

AmitDiwan

AmitDiwan

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

225 Views

The HTML DOM Script collection returns the collection of all elements of an HTML document.SyntaxFollowing is the syntax −document.scriptsProperty of script objectPropertyExplanationlengthIt returns the number of element in the collection in a HTML document.Methods of script objectMethodExplanation[index]It returns the specified index element from the collection.item(index)It returns the ... Read More

HTML DOM setNamedItem() Method

AmitDiwan

AmitDiwan

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

164 Views

The DOM setNamedItem() method set a node specified in its parameter to an attribute node using its name in an HTML document.SyntaxFollowing is the syntax −node.setNamedItem(node);ExampleLet us see an example of setNamedItem() method − Live Demo    html{       height:100%;    }    body{     ... Read More

HTML DOM removeNamedItem() Method

AmitDiwan

AmitDiwan

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

117 Views

The HTML DOM removeNamedItem() method removes the node specified in its parameter from an attribute node using its name in an HTML document.SyntaxFollowing is the syntax −node.removeNamedItem(node);ExampleLet us see an example of removeNamedItem() method − Live Demo    html{       height:100%;    }    body{   ... Read More

HTML DOM readyState Property

AmitDiwan

AmitDiwan

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

178 Views

The DOM readyState property returns the loading status of the current HTML document.SyntaxFollowing is the syntax −document.readyStateExampleLet us see an example of readyState property − Live Demo    html{       height:100%;    }    body{       text-align:center;       color:#fff;       ... Read More

HTML DOM Input Time type Property

AmitDiwan

AmitDiwan

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

228 Views

The HTML DOM Input Time type property returns/sets type of Input Time.SyntaxFollowing is the syntax −Returning string valueinputTimeObject.typeSetting type to string valueinputTimeObject.type = stringValueString ValuesHere, “stringValue” can be the following −stringValueDetailstimeIt defines that input type is timedatetime-localIt defines that input type is datetime-localcheckboxIt defines that input type is checkboxtextIt defines ... Read More

HTML DOM Input Time value Property

AmitDiwan

AmitDiwan

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

125 Views

The HTML DOM Input Time value property returns a string, which is the value of the value attribute of input Time. User can also set it to a new string.SyntaxFollowing is the syntax −Returning string valueinputTimeObject.valueSetting value attribute to a string valueinputTimeObject.value = ‘String’ExampleLet us see an example of Input Time ... Read More

HTML DOM Input URL autocomplete Property

AmitDiwan

AmitDiwan

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

155 Views

The HTML DOM Input URL autocomplete property sets/returns whether autocomplete is enabled or disabled. If enabled it shows previously typed values.SyntaxFollowing is the syntax −Returning value - on/offinputURLObject.autocompleteSetting autocomplete to valueinputURLObject.autocomplete = valueValuesHere, “value” can be the following −valueDetailsonIt defines that input has autocomplete attribute enabled.offIt defines that input autocomplete attribute ... Read More

HTML DOM Input URL autofocus Property

AmitDiwan

AmitDiwan

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

139 Views

The HTML DOM Input URL autofocus property sets/returns whether Input URL is focused upon initial page load.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputURLObject.autofocusSetting autofocus to booleanValueinputURLObject.autofocus = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailsTrueIt defines that input will be autofocused on page load.FalseIt is the default value ... Read More

HTML DOM Input URL defaultValue Property

AmitDiwan

AmitDiwan

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

128 Views

The HTML DOM Input URL defaultValue property sets/returns the default value corresponding to URL Input. The value attribute changes as the user types in the URL input but default value does not change.SyntaxFollowing is the syntax −Returning string valueinputURLObject.defaultValueSetting defaultValue to stringinputURLObject.defaultValue = ‘string’ExampleLet us see an example of Input ... Read More

HTML DOM Input URL disabled Property

AmitDiwan

AmitDiwan

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

144 Views

The HTML DOM Input URL disabled property sets/returns whether Input URL is enabled or disabled.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputURLObject.disabledSetting disabled to booleanValueinputURLObject.disabled = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailsTrueIt defines that the input url is disabled.FalseIt defines that the input url is not disabled ... Read More

Advertisements