/html-dom /Basic
GitHub 5008★

Get the parent node of an element

Returns the parent node of the ele element:

const parent = ele.parentNode;

See also

Follow me on and to get more useful contents.