Get the parent node of an element

Returns the parent node of the ele element:

const parent = ele.parentNode;

More

Previous
Get the document height and width
Next
Get the position of an element relative to another