# Any way to override the android back button functionality on certain pages?

**URL:** <https://forum.ionicframework.com/t/any-way-to-override-the-android-back-button-functionality-on-certain-pages/58310>\
**Category:** ionic-v3\
**Created:** [July 22, 2016, 3:15pm UTC](https://forum.ionicframework.com/t/any-way-to-override-the-android-back-button-functionality-on-certain-pages/58310 "2016-07-22T15:15:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonwaters](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jasonwaters/32/96926_2.png) [@jasonwaters](https://forum.ionicframework.com/u/jasonwaters)\
**Post date:** [July 22, 2016, 3:15pm UTC](https://forum.ionicframework.com/t/any-way-to-override-the-android-back-button-functionality-on-certain-pages/58310/1 "2016-07-22T15:15:56Z")

</div>

I have one page in my app that I do not want to be dismissed if the user presses the back button on their android. Is there a way to prevent back button in certain cases?

I tried this, but it didn’t work:

```auto
		document.addEventListener('backbutton', evt => {
			evt.preventDefault();
			evt.stopImmediatePropagation();
		}, false);

```
