AmitDiwan has Published 11365 Articles

HTML DOM nodeValue Property

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 07:59:35

176 Views

The HTML DOM nodeValue property returns/sets a string corresponding to the value of the node.Following is the syntax −Returning string valueNode.nodeValueHere, the return value can be the following −Value as ‘null’ for document nodes & element nodesValue as ‘value’ of the attribute for attribute nodesValue as content for text nodes ... Read More

HTML DOM nodeType Property

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 07:50:55

86 Views

The HTML DOM nodeType property returns a number corresponding to the type of the node.Following is the syntax −Returning number valueNode.nodeTypeHere, the return value can be the following −Number ‘1’ for element nodesNumber ‘2’ for attribute nodesNumber ‘3’ for text nodesNumber ‘8’ for comment nodesNOTE: Whitespaces are considered as text ... Read More

HTML DOM nodeName Property

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 07:48:01

113 Views

The HTML DOM nodeName property returns a string corresponding to the name of the node.Following is the syntax −Returning string valueNode.nodeNameHere, the return value can be the following −Tag name in uppercase for element nodesName of the attribute for attribute nodes‘#comment’ for comment nodes‘#document’ for comment nodes‘#text’ for text nodesNOTE: ... Read More

HTML DOM nextSibling Property

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 07:44:46

153 Views

The HTML DOM nextSibling property returns the element node which is immediately following specified element node.NOTE: This property does not ignore text and comment nodes.Following is the syntax −Returning nextSibling nodenodeList.nextSiblingLet us see an example of HTML DOM nextSibling property −Example Live Demo HTML DOM nextSibling    form ... Read More

HTML DOM nextElementSibling Property

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 07:39:20

108 Views

The HTML DOM nextElementSibling property returns the element node which is immediately following specified element node.NOTE: This property does ignore text and comment nodes.Following is the syntax −Returning nextElementSibling nodenodeList.nextElementSiblingLet us see an example of HTML DOM nextElementSibling property −Example Live Demo HTML DOM nextElementSibling    form { ... Read More

HTML DOM Nav Object

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 07:34:16

184 Views

The HTML DOM Nav Object in HTML represents a element.Let us see an example of HTML DOM Nav object −Example Live Demo HTML DOM Nav    * {       padding: 2px;       margin:5px;    }       form {       ... Read More

HTML DOM name Property

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 07:26:33

127 Views

The HTML DOM name property returns a string corresponding to the name of the attribute of an element.Following is the syntax −Returning string valueelementAttribute.nameLet us see an example of HTML DOM name property − Live Demo HTML DOM name    * {       padding: 2px;   ... Read More

HTML DOM MouseEvent Object

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 07:20:32

355 Views

The HTML DOM MouseEvent Object represents an event which incurs on interaction of mouse with the HTML document elements.Here, “MouseEvent” can have the following properties and methods −Property/MethodDescriptionaltKeyItreturns whether the "ALT" key on keyboard was pressedwhen the mouse event was triggeredbuttonItreturns a number corresponding to which mouse button was pressedwhen ... Read More

HTML DOM MouseEvent screenY Property

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 06:54:17

51 Views

The HTML DOM MouseEvent screenY property returns the vertical (y) coordinate of the mouse pointer relative to the users screen display if a mouse event was triggered. Use with screenY to get the horizontal coordinate as well.Following is the syntax −Returning reference to the screenY objectMouseEventObject.screenYLet us see an example ... Read More

HTML DOM MouseEvent screenX Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 12:33:14

63 Views

The HTML DOM MouseEvent screenX property returns the horizontal (x) coordinate of the mouse pointer relative to the users screen display if a mouse event was triggered. Use with screenY to get the vertical coordinate as well.Following is the syntax −Returning reference to the screenX objectMouseEventObject.screenXLet us see an example ... Read More

Advertisements