Go back button - Forum

Forum Navigation
VisualNEO Products: Web, Win and PixelNEO
You need to log in to create posts and topics.

Go back button

I would like to know how can I control the effect of the Go Back button in Android. It has unpredictable effects in the objects of my app so I would like to control its effects.

To be able to implement your own functionality, you first need to disable exiting the app when the back button is pressed.

BEGINJS
document.addEventListener("backbutton", onBackKeyDown, false);
  function onBackKeyDown(e) { e.preventDefault();
   alert('Back Button is Pressed!');
  }
ENDJS
 

Thank you very much Asmat. It works perfect!

Open chat
1
Do you need more info?
Hi, do you have any doubt?