AmitDiwan has Published 10740 Articles

HTML DOM Ol reversed Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 06:50:55

181 Views

The HTML DOM Ol reversed property sets/returns whether the order of list should be descending or ascending (default).Following is the syntax −Returning boolean value - true/falseolObject.reversedSetting reversed to booleanValueolObject.reversed = booleanValueHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that order willbe descendingfalseIt defines that order willbe ascending which is defaultLet us ... Read More

HTML DOM Ol Object

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 06:45:59

210 Views

The HTML DOM Ol Object in HTML represents the element.Creating a elementvar olObject = document.createElement(“OL”)Here, “olObject” can have the following properties −PropertyDescriptionreversedItsets/returns whether the order of list should be descending orascending (default)startItsets/returns the value of the start attribute of an ordered listtypeItsets/returns the value of the type attribute ... Read More

HTML DOM Object Object

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 08:20:52

323 Views

The HTML DOM Object Object in HTML represents the  element.Creating an elementvar objectElement = document.createElement(“OBJECT”)Here, “objectElement” can have the following properties −PropertyDescriptiondataItsets/returns the URL of the resource being used by the objectelementformItreturns a reference to the enclosing form of the object elementheightItsets/returns the height of the object elementnameItsets/returns the ... Read More

HTML DOM Object form Property

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 08:15:08

230 Views

The HTML DOM Object form property returns the reference of enclosing form for element.Following is the syntax −Returning reference to the form objectObjectElement.formLet us see an example of Object form property −Example Live Demo HTML DOM Object form    form {       width:70%;     ... Read More

HTML DOM Object data Property

AmitDiwan

AmitDiwan

Updated on 25-Oct-2019 08:12:24

142 Views

The HTML DOM Object data property returns a string corresponding to the value of the attribute data.Following is the syntax −Returning string valueObjectElement.dataSet data property to a string valueObjectElement.data = URLStringLet us see an example of HTML DOM Object data property −Example Live Demo HTML DOM Object data ... Read More

HTML DOM Nav Object

AmitDiwan

AmitDiwan

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

250 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 MouseEvent Object

AmitDiwan

AmitDiwan

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

448 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

116 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

123 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

HTML DOM MouseEvent relatedTarget

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 12:28:44

131 Views

The HTML DOM MouseEvent relatedTarget property returns the corresponding element that triggered the respective mouseover or mouseout event.Following is the syntax −Returning reference to the relatedTarget objectMouseEventObject.relatedTargetLet us see an example of MouseEvent relatedTarget property −Example Live Demo MouseEvent relatedTarget    * {       padding: 2px; ... Read More

Advertisements