Hi.
I need to make a link on various pages with 2 functions.
One that just act like browser-goback if vistor entered from a list-page.
And an ordinay linkfunction (where visitor will enter at the top) when reference page is any other than the list-page.
Have tried with this script
with link:
It doesn´t work. Can anyone come up with a code that could do it, I would be really happy.
I need to make a link on various pages with 2 functions.
One that just act like browser-goback if vistor entered from a list-page.
And an ordinay linkfunction (where visitor will enter at the top) when reference page is any other than the list-page.
Have tried with this script
Code:
function mylist()
{ if(document.referrer === "list-page.htm"){
history.back();
} else {
document.location = "list-page.htm"
} }
Code:
<a href="javascript:void(0)" onClick="return mylist()"</a>
Comment