Menu
Gets the element's parent element.
Description
Some elements can contain other elements. This occurs when you drag an element onto a container element. The container is the parent of all the elements it contains.
parent
Page, Header, and Footer are top-level elements and have no parent.
Page
Header
Footer
Type:
Related Content:
children
Was this helpful?
1let parentElement = $w("#myElement").parent;2 3let parentId = parentElement.id; // "page1"