irigsoft Posted October 12, 2021 Share Posted October 12, 2021 Hello. Is it possible to intercept the press of the browser return button and replace it? I want when the user presses the back button: 1. Learn about this (from some ajax or other JavaScript function) 2. If the button is pressed, run my VCL (or javascript) function I prefer to apply this when the return button on a mobile browser is pressed. Link to comment Share on other sites More sharing options...
irigsoft Posted October 13, 2021 Author Share Posted October 13, 2021 I almost succeed, but: Now the question is, how to add My actions (functions) on back button pressed (window.onhashchange) if I know hash on every backbutton click ? Based on this topics: https://stackoverflow.com/questions/21850093/usage-of-hash-in-url/21850181 and this, I create false-blocking backbutton: Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now