Add function to a button
Автор: Ad Bakker
Просмотрено 2071,
Подписчики 1,
Размещенный 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
Размещено
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.
Автор
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