You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, May 16th 2014, 9:35am

Onclick event to return to previous page..

How can I make a button to return to previous page? *confused*


Here I added Onclick event... (tour.xml)

Quoted

<plugin name="return" url="img/btn_back.png" keep="true" visible="true" handcursor="true" onclick="goBack();" />


Also I added below on the html tag... (tour.html)

Quoted

<script
type="text/javascript">// <![CDATA[function goback() {window.history.go(-1);}// ]]></script>
But it doesn't work.. *huh*
Any help would be appreciated!


Thank you.

2

Monday, May 19th 2014, 12:49pm

Do:
onclick="js( goBack() );"

See:
http://krpano.com/docu/actions/#js

Best regards,
Klaus

3

Friday, March 20th 2015, 11:53pm

Do:
onclick="js( goBack() );"

See:
http://krpano.com/docu/actions/#js

Best regards,
Klaus



Does this work with the html5 player as well?

4

Saturday, July 11th 2015, 6:12am

very good *thumbup*