AmitDiwan has Published 11367 Articles

HTML DOM setNamedItem() Method

AmitDiwan

AmitDiwan

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

83 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

64 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

91 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

160 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 open() Method

AmitDiwan

AmitDiwan

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

87 Views

The DOM open() method set a node specified in its parameter to an attribute node using its name in an HTML document.SyntaxFollowing is the syntax −document.open(type, replace);Here type represent type of document and replace represent whether the history entry for the new document inherits the history entry from the document ... Read More

HTML DOM Input Time value Property

AmitDiwan

AmitDiwan

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

69 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

109 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 ownerDocument Property

AmitDiwan

AmitDiwan

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

76 Views

The HTML DOM ownerDocument property returns a Document object which represents the owner document of a node.SyntaxFollowing is the syntax −node.ownerDocumentExampleLet us see an example of ownerDocument property − Live Demo    html{       height:100%;    }    body{       text-align:center;       ... Read More

HTML DOM Input URL autofocus Property

AmitDiwan

AmitDiwan

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

82 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 replaceChild() Method

AmitDiwan

AmitDiwan

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

74 Views

The DOM replaceChild() method replace a child node with a new one in an HTML document.SyntaxFollowing is the syntax −node.replaceChild(newNode, oldNode);ExampleLet us see an example of replaceChild() method − Live Demo    html{       height:100%;    }    body{       text-align:center;       ... Read More

Advertisements