AmitDiwan has Published 11365 Articles

HTML DOM Ol Object

AmitDiwan

AmitDiwan

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

121 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 offsetWidth Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 06:38:24

105 Views

The HTML DOM offsetWidth property returns a number corresponding to the width of an element including its padding, border and scrollbar but not its margin.Following is the syntax −Returning number valueHTMLelement.offsetWidthLet us see an example of HTML DOM offsetWidth property −Example Live Demo HTML DOM offsetHeight    form ... Read More

HTML DOM offsetTop Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 06:34:06

212 Views

The HTML DOM offsetTop property returns a number corresponding to the top position of the specified element relative to the top side of the parent element.Following is the syntax −Returning number value in pixels (px)HTMLelement.offsetTopHere, returned value corresponds to −The top position and margin of the specified elementThe top padding, ... Read More

HTML DOM offsetParent Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 06:30:34

136 Views

The HTML DOM offsetParent property returns the referenced parent element from which child offsets are defined.Following is the syntax −Returning referenced offset parent elementHTMLelement.offsetParentLet us see an example of HTML DOM offsetParent property −Example Live Demo HTML DOM offsetParent    #picForm {       width:70%;       ... Read More

HTML DOM offsetLeft Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 06:26:52

140 Views

The HTML DOM offsetLeft property returns a number corresponding to the left position of the specified element relative to the left side of the parent element.Following is the syntax −Returning number value in pixels (px)HTMLelement.offsetLeftHere, returned value corresponds to −The left position and margin of the specified elementThe left padding, ... Read More

HTML DOM offsetHeight Property

AmitDiwan

AmitDiwan

Updated on 29-Oct-2019 06:04:17

71 Views

The HTML DOM offsetHeight property returns a number corresponding to the height of an element including its padding, border and scrollbar but not its margin.Following is the syntax −Returning number valueHTMLelement.offsetHeightLet us see an example of HTML DOM offsetHeight property −Example Live Demo HTML DOM offsetHeight    form ... Read More

HTML DOM Object Object

AmitDiwan

AmitDiwan

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

216 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

154 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

81 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 normalize( ) Method

AmitDiwan

AmitDiwan

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

119 Views

The HTML DOM normalize() method removes empty Text Nodes, and joins adjacent Text Nodes from a specified node.Following is the syntax −Calling normalize()document.normalize()Let us see an example of normalize() method −Example Live Demo HTML DOM normalize()    form {       width:70%;       margin: 0 ... Read More

Advertisements