AmitDiwan has Published 11377 Articles

HTML DOM Input Datetime required Property

AmitDiwan

AmitDiwan

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

70 Views

The HTML DOM Input Datetime required property determines whether Input Datetime is compulsory to set or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputDatetimeObject.requiredSetting required to booleanValueinputDatetimeObject.required = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that it is compulsory to set the datetime field to submit form.falseIt ... Read More

HTML DOM insertBefore( ) Method

AmitDiwan

AmitDiwan

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

95 Views

The HTML DOM insertBefore() method inserts a new node before an already existing child node.SyntaxFollowing is the syntax −Calling insertBefore() with parameters of positionString and textnode.insertBefore(newNode, existingNode)Here, parameters can be the following −ParametersparametersDescriptionnewNodeIt is the newly created child node which is to be appended at beginningexistingNodeIt is the already existing ... Read More

HTML DOM Input Datetime type Property

AmitDiwan

AmitDiwan

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

326 Views

The HTML DOM Input Datetime type property returns/sets type of Input Datetime.SyntaxFollowing is the syntax −Returning string valueinputDatetimeObject.typeSetting type to string valueinputDatetimeObject.type = stringValueString ValuesHere, “stringValue” can be the following −stringValueDetailsdateIt defines that input type is datedatetimeIt defines that input type is datetimecheckboxIt defines that input type is checkboxtextIt defines ... Read More

HTML DOM isContentEditable Property

AmitDiwan

AmitDiwan

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

62 Views

The HTML DOM isContentEditable property returns whether the content of an element can be modified or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseHTMLElementObject.isContentEditableBoolean ValuesHere, “booleanValue” is returned −booleanValueDetailstrueIt defines that the content of HTMLElementObject is editable.falseIt defines that the content of HTMLElementObject is not editable.ExampleLet us see an ... Read More

HTML DOM Input Datetime value Property

AmitDiwan

AmitDiwan

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

90 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

72 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

47 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

48 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

78 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

103 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

Advertisements