Answers for "javascript event on browser back button"

1

javascript onclick back

<!-- 
Simple copy and paste back button. 
It will go to whatever you previous page was. Styling is up to you.
-->
<button onclick="window.history.back();">Back</button>
Posted by: Guest on September-03-2021
0

back button event listener javascript

function goBack() {
    window.location.hash = window.location.lasthash[window.location.lasthash.length-1];
 	window.location.lasthash.pop();
}
Posted by: Guest on April-16-2021

Code answers related to "javascript event on browser back button"

Browse Popular Code Answers by Language