---
title: getDocument
framework: tvmljs
role: symbol
role_heading: Instance Method
path: tvmljs/menubardocument/1627405-getdocument
---

# getDocument

Retrieves the document associated with the specified menu item.

## Declaration

```data
Document getDocument(
    in Element menuItem
);
```

## Parameters

- `menuItem`: The menu item currently in focus.

## Return Value

Return Value The TVML page associated with the selected menu item.

## See Also

### Setting and Retrieving Menu Item Documents

- [getSelectedItem](tvmljs/menubardocument/1657224-getselecteditem.md)
- [setDocument](tvmljs/menubardocument/1627374-setdocument.md)
- [setSelectedItem](tvmljs/menubardocument/1627427-setselecteditem.md)
