I have a page where multiple tabs (subpages) are accessed via jQuery show/hide
functions. When one clicks on the logo all other tabs are hidden and the first one is shown.
I would like to attach the same show/hide flow as with $("#logo").click()
to the back button. When someone would tap browser's back button the default action should be prevented and show/hide combination should be activated to display the first tab.
Does anyone has a solution?
window.onbeforeunload function does not work... https://jsfiddle.net/hqkyxz3w/3/