How to "window.history.back();" in to button?

Ooppsss. Try

window.history.go(-1);

It won’t work while previewing because nothing will be in the history

You can test it by going forward, – preview your hype file then go to google.com then hit the back button to go back to you Hype preview with a button that has this script attached to it.

window.history.forward();
1 Like