Search.../

children

Gets the document's Header, Page, and Footer.

Type:

Array<Node>Read Only

Related Content:

Was this helpful?

Get the document's children

Copy Code
1let docChildren = $w("Document").children;
2
3let firstChildType = docChildren[0].type; // "$w.Page"
4let secondChildType = docChildren[1].type; // "$w.Header"
5let thirdChildType = docChildren[2].type; // "$w.Footer"