WebSite X5Help Center

 
Ad Bakker
Ad Bakker
User

Add function to a button  en

Autor: Ad Bakker
Visited 2037, Followers 1, Udostępniony 0  

Hello Friends,

I need a function to go to the last visited page in the website,

All buttons direct to webpages as a sticky address and I wonder if there is a workaround link the button to a small HTML script. I'm using some small scripts already on that website so I can write a button with function myself, but having a sollution buildin is more preferable.

I need a little push in the right direction from you.

I wish you all a nice weekend from the Netherlands

Ad Bakke

Posted on the
2 ODPOWIEDZI - 1 POMOCNY
John S.
John S.
User

Hello Bakker

You could put this in a HTML-object.

<a href="#" onclick="history.go(-1)">Go Back</a>

It does exactly the same as if yoy use the browsers back-button.

So - in fact the user can go back without this "button" .

But maybe I did not understand what you mean ?

Kind regards

John S.

Czytaj więcej
Posted on the from John S.
Ad Bakker
Ad Bakker
User
Autor

Thanks John,

This is what I need yes, but for consistenty in the page design it should be nice to have an extra choice with the buttons to link to an HTML-object. Another way I will try tomorrow is implement a button img in te code.

Anyway many thanks for the help

Ad Bakker

Czytaj więcej
Posted on the from Ad Bakker