Category / Section
Why are window.onload and $(document).ready not raised when back button is pressed?
1 min read
When navigating from the back button, window.onLoad and $(document).ready are not triggered since the page is loaded via Ajax. If you want to handle actions while clicking the back button, then you can use the touchend event property of the button. But, when you handle the click event, then you have to call either window.history.back() or App.transferPage method to navigate to the desired page.