Hello @nolimits4web,
I want to get callback or alert when I click browser back button when using pushState:true.
How I can achieve that ?
Hello @nolimits4web,
I want to get callback or alert when I click browser back button when using pushState:true.
How I can achieve that ?
Dom7(window).on('popstate',function(e){
console.log('popstate')
});
Dom7(window).on('hashchange',function(e){
console.log('hashchange')
});
//use one of them
{
path: '/accordion/',
url: './pages/accordion.html',
on: {
pageBeforeOut:function(e,page){
console.log('Before Out')
},
pageAfterOut:function(e,page){
console.log('After Out')
},
pageBeforeRemove:function(e,page){
console.log('Before Remove')
}
}
}
Hi @plpl,
I’m following your method, but still affecting all pages.
Hi @nolimits4web,
Any suggestion?