0
how can I trigger an onleave event for mobile?
I'm trying to set up an event that triggers when the users clicks the back button on their mobile.
2 ответов
+ 2
You have to use 'backbutton' event with document.
for example:
document.addEvenetListener('backbutton', function() {
//Code
});
0
🔫 Rick Grimes thanks for this.