JavaScript – DOM Element insertBefore() Method
The Element insertBefore() method inserts a child node before an existing child node.
The Element insertBefore() method inserts a child node before an existing child node.
The Element isContentEditable property returns “true” if the content of an element is editable, and “false” if it is not editable.
The Element isDefaultNamespace() method returns “true” if the elements’s namespace is default, and “false” if it is not.
The Element isEqualNode() returns true if two elements are equal.
The Element isSameNode() method checks if two nodes are the same node, returning “true” if the two nodes are the same node, and “false” if not.
The Element lang property returns the value of an element’s lang attribute.
The Element lastChild property returns the last child node of a node.
The Element lastElementChild property returns the last child element of an element.
The Element namespaceURI property returns the URI of an element’s namespace.
The Element matches() method returns true if an element matches a specific CSS selector or selectors.
The Element nextElementSibling property returns the next element in the same tree level.
The Element nextSibling property returns the next node on the same tree level.
The Element nodeName property returns the name of a node.
The Element nodeType property returns the node type, as a number, of the specified node.
The Element nodeValue property returns the value of a node. If the node is an element node, the nodeValue property will return null.
The Element normalize() method removes empty text nodes, and joins adjacent text nodes.
The Element offsetHeight property returns the viewable height of an element, including padding, border and scrollbar, but not the margin.
The Element offsetLeft property returns the left position relative to the parent.
The Element offsetParent property returns the nearest ancestor that has a position other than static. It return “null” if set to display: none;.
The Element offsetWidth property returns the viewable width of an element, including padding, border and scrollbar, but not the margin.