Page 1 of 1

How to implement an action that backs out of player

Posted: Wed Nov 10, 2021 3:38 pm
by mlenox
I thought this would be trivial but have not found a solution. I want an Action on a button that backs out of the Pano player. Essentially I want a browser back button built into my Pano skin. Has anyone done this?

Re: How to implement an action that backs out of player

Posted: Wed Nov 10, 2021 4:31 pm
by Hopki
Hi,
Add a button image or even use a text box.
Give it the action, Mouse Click, Go To URL.
Then in the URL text field enter:

Code: Select all

javascript: window.history.back();

Leave the target blank.
Note this is a browser history back button and not a tour back button.
Regards,

Re: How to implement an action that backs out of player

Posted: Wed Nov 10, 2021 7:45 pm
by mlenox
Thanks Hoki! Seems to work well.

Screen Shot 2021-11-10 at 12.42.02 PM.png
Screen Shot 2021-11-10 at 12.42.02 PM.png (361.71 KiB) Viewed 1457 times