AmitDiwan has Published 11433 Articles

HTML DOM Input Datetime value Property

AmitDiwan

AmitDiwan

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

85 Views

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

HTML DOM isDefaultNamespace( ) Method

AmitDiwan

AmitDiwan

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

65 Views

The HTML DOM isDefaultNamespace() method returns a boolean value (true/false) if specified namespace is default or not.Note − An element node inherits the namespace of its parent node, therefore, all elements in an XHTML document has the namespaceURI "http://www.w3.org/1999/xhtml".SyntaxFollowing is the syntax −Calling isDefaultNamespace()document.documentElement.isDefaultNamespace("nameSpaceURI")ExampleLet us see an example for isDefaultNamespace() method ... Read More

HTML DOM isEqualNode( ) Method

AmitDiwan

AmitDiwan

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

42 Views

The HTML DOM isEqualNode() method returns a boolean value (true/false) if specified nodes are equal or not.SyntaxFollowing is the syntax −Calling isEqualNode()firstNode.isEqualNode(secondNode)NOTE − ‘firstNode’ and ‘secondNode’ are equal only if they have same type, attributes and attribute values. All childNodes if any should also be the same.ExampleLet us see an ... Read More

HTML DOM Input DatetimeLocal disabled Property

AmitDiwan

AmitDiwan

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

43 Views

The HTML DOM Input DatetimeLocal disabled property sets/returns whether Input DatetimeLocal is enabled or disabled.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputDatetimeLocalObject.disabledSetting disabled to booleanValueinputDatetimeLocalObject.disabled = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input datetimeLocal is disabled.falseIt defines that the input datetimeLocal is not disabled ... Read More

HTML DOM isSameNode( ) Method

AmitDiwan

AmitDiwan

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

68 Views

The HTML DOM isSameNode() method returns a boolean value (true/false) if two nodes are same or not.Note − The isSameNode() method is deprecated so you should use ‘===’ operator instead.SyntaxFollowing is the syntax −Calling isSameNode()nodeOne.isSameNode(NodeTwo)ExampleLet us see an example for isSameNode() method − Live Demo isSameNode()    form ... Read More

HTML DOM Italic Object

AmitDiwan

AmitDiwan

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

100 Views

The HTML DOM Italic Object represents an element which displays text in italic.SyntaxFollowing is the syntax −Creating an elementvar italicObject = document.createElement(“I”)ExampleLet us see an example for Italic object element − Live Demo Italic Object    form {       width:70%;       margin: ... Read More

HTML DOM Input DatetimeLocal form Property

AmitDiwan

AmitDiwan

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

57 Views

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

HTML DOM item( ) Method

AmitDiwan

AmitDiwan

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

68 Views

The HTML DOM item() method returns a node from a node list object.Note − The item() method is used to provide index value in a node list object. It is same as getting node by passing index value in ‘[index]’ on node list object.SyntaxFollowing is the syntax −Calling item(index), where ... Read More

HTML DOM Input DatetimeLocal max Property

AmitDiwan

AmitDiwan

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

68 Views

The HTML DOM Input DatetimeLocal max property returns/sets max attribute of Input DatetimeLocal.SyntaxFollowing is the syntax −Returning string valueinputDatetimeLocalObject.maxSetting max to string valueinputDatetimeLocalObject.max = YYYY-MM-DDThh:mm:ssString ValuesHere, “YYYY-MM-DDThh:mm:ss” can be the following −stringValueDetailsYYYYIt defines year (eg:2006)MMIt defines month (eg: 06 for June).DDIt defines Day (eg: 17)TIt is a separator for date ... Read More

HTML DOM Kbd Object

AmitDiwan

AmitDiwan

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

56 Views

The Kbd Object represents an inline element which displays monospace font by default.SyntaxFollowing is the syntax −Creating a elementvar kbdObject = document.createElement(“KBD”)ExampleLet us see an example for Kbd object element − Live Demo Kbd Object    form {       width:70%;       margin: 0 ... Read More

Advertisements