Create a back button with javascript

Create your custom back button and style it on your page to your liking. It can return the user back as many pages as you want.

Hack Name:
hacks_13

Demo Example

Code

!
We can not copy-paste TypeScript into Webflow. TypeScript must be compiled to JavaScript. For copy-paste into Webflow, choose JavaScript.
What is TypeScript? 🡭
<script>
document.addEventListener('DOMContentLoaded',
	function () {    
  	const WAIT_TIME = 4500;
  }
})
</script>
!
Copy-paste this script into your Webflow project body.