# Changing "pages" with the click of a button

**URL:** <https://discuss.streamlit.io/t/changing-pages-with-the-click-of-a-button/1391>\
**Category:** Using Streamlit\
**Created:** [December 19, 2019, 5:15pm UTC](https://discuss.streamlit.io/t/changing-pages-with-the-click-of-a-button/1391 "2019-12-19T17:15:58Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Marisa\_Smith](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/marisa_smith/32/11154_2.png) [@Marisa\_Smith](https://discuss.streamlit.io/u/Marisa_Smith)\
**Post date:** [November 4, 2020, 11:25pm UTC](https://discuss.streamlit.io/t/changing-pages-with-the-click-of-a-button/1391/5 "2020-11-04T23:25:02Z")

</div>

Hi @Emmanuel_Pean,

I have made a bit of a hack that on the most part will do what you ask, its on the thread: [Navigation panel - can we have a button on the right hand side like 'Next' which automatically moves to the next 'page' in the navigation panel](https://discuss.streamlit.io/t/navigation-panel-can-we-have-a-button-on-the-right-hand-side-like-next-which-automatically-moves-to-the-next-page-in-the-navigation-panel/6588)

The real way to do this is through session state, that is to get the state of the app at a certain point and be able to increment or change this based on a click that the user does. Here is a link to using session state workarounds: [Multi-page app with session state](https://discuss.streamlit.io/t/multi-page-app-with-session-state/3074)

Happy Streamlit-ing!  
Marisa

---

_[View the full topic](https://discuss.streamlit.io/t/changing-pages-with-the-click-of-a-button/1391)._
