Entries by Ville

Element.matches()

JavaScript’s Element.matches() method returns a Boolean value indicating whether the Element would be selected by any of the specified CSS selectors.

Element.remove()

JavaScript’s Element.remove() method removes the Element from the DOM (Document Object Model).

Node.parentNode

JavaScript’s Node.parentNode read-only property returns the Node’s parent node or null if the Node does not have a parent node.

Node.parentElement

JavaScript’s Node.parentElement read-only property returns the Node’s parent element or null if the Node does not have a parent element.

Element.lastElementChild

JavaScript’s Element.lastElementChild read-only property returns the Element’s last child element or null if the Element has no child elements.

Element.firstElementChild

JavaScript’s Element.firstElementChild read-only property returns the Element’s first child element or null if the Element has no child elements.

Node.lastChild

JavaScript’s Node.lastChild read-only property returns the Node’s last child or null if the Node has no children.