on 01-12-2017 5:59 AM
Hello,
I am developing an application for pharma industry where I have to handle all navigation from application itself.
But while clicking the browser back or refresh button navigation also happening, so wanted to check these two events.
Any help in this will be appreciated.
Thank you,
Kumar Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharath,
I have tried all the solution mentioned in the link. The only solution which worked partially is:
history.pushState(null,null, document.URL);
window.addEventListener('popstate',function(){
history.pushState(null,null, document.URL);});
But it also restricts it for one click only, if you click again on Back button it will start behaving like old way. Can you explain in more detail if you have already tried this use case.
Best Regards,
Ankur
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.