Is it possible to tell if there is a back
state available (i.e. if the back button in the browser is clickable) without navigating?
Id like to be able to do this in HTML4 and HTML5 if possible.
I can see theres window.history.length
, but it doesn't seem to have coherent or consistent behaviour.
Is this possible?
I can see there is this thead, but its rather old. Was wondering if there were HTML5 changes since this thread: How to check if the user can go back in browser history or not