# How to trigger GoTo method to redirect to a specific page once the document is loaded

**URL:** <https://pdfjs.community/t/how-to-trigger-goto-method-to-redirect-to-a-specific-page-once-the-document-is-loaded/854>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [June 28, 2021, 8:39am UTC](https://pdfjs.community/t/how-to-trigger-goto-method-to-redirect-to-a-specific-page-once-the-document-is-loaded/854 "2021-06-28T08:39:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Gokul](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/gokul/32/413_2.png) [@Gokul](https://pdfjs.community/u/Gokul)\
**Post date:** [June 28, 2021, 8:39am UTC](https://pdfjs.community/t/how-to-trigger-goto-method-to-redirect-to-a-specific-page-once-the-document-is-loaded/854/1 "2021-06-28T08:39:00Z")

</div>

**PDF.js Express Version**  
7.3.1

**Detailed description of issue**  
Looking to redirect to a page when the document is loaded, got the page number from url params but how to trigger after load. Help me with the method to trigger with the action object

**Expected behaviour**  
Redirect to a specific page

**Does your issue happen with every document, or just one?**  
every document

**Link to document**

**Code snippet**  
Trying like this  
let goto = new Actions.GoTo({ dest: new Actions.GoTo.Dest({ page: jumpToAnnotation, }), });  
console.log(goto);

---

_[View the full topic](https://pdfjs.community/t/how-to-trigger-goto-method-to-redirect-to-a-specific-page-once-the-document-is-loaded/854)._
