How to implement an action that backs out of player

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
mlenox
Posts: 15
Joined: Fri Oct 16, 2020 12:31 pm

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?
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
mlenox
Posts: 15
Joined: Fri Oct 16, 2020 12:31 pm

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 1238 times
Post Reply