Hi,
I have a Hype project with several scenes. On each scene, there is a button allowing to go a specific scene (for example, “help”). What I would love to is being able to go back to the “previous” page (I mean the one on which I pushed the button).
Do you have any idea?
Many thanks!
Christian
Hi Christian!
Is this the set-up~technique You are looking for? Haven't used it yet myself...
Below is a technique to create a ‘Back’ button within your Tumult Hype document which will take your users to the last visited scene. This does not override the Browser back button.
First, on all scenes where you want to remember visits, add this JS function to run ‘On Scene Unload’:
window.lastHypeSceneName = hypeDocument.currentSceneName();
To create your back button which will look at the last ‘Unloaded’ scene, run this function when the button is clicked:
if (window.lastHypeSceneName == …
1 Like
Hi, Jim. Thank you for this. I will try it and come back to you.
Thank you, it worked perfectly!