---
title: pushDocument
framework: tvmljs
role: symbol
role_heading: Instance Method
path: tvmljs/navigationdocument/1627361-pushdocument
---

# pushDocument

Pushes the specified document onto the stack.

## Declaration

```data
void pushDocument(
    in Document document
);
```

## Parameters

- `document`: The DOM document that is to be added onto the stack.

## Discussion

Discussion The document being pushed onto the stack must be a valid parsed DOM object.

## See Also

### Adding Documents to the Stack

- [insertBeforeDocument](tvmljs/navigationdocument/1627340-insertbeforedocument.md)
- [replaceDocument](tvmljs/navigationdocument/1627430-replacedocument.md)
