Is there any way to detect the "back" click? More necessarily from mobile devices (Android is enough).
I would like, in my web app, the back button to call certain functions, in this case closing popups. Do you have any ideas?
Is there any way to detect the "back" click? More necessarily from mobile devices (Android is enough).
I would like, in my web app, the back button to call certain functions, in this case closing popups. Do you have any ideas?
You can try to use the function:
document.addEventListener("backbutton", onBack, false)
function onBack(){ /* faz algo ao clicar no botão voltar */ }