I have a link list who call other blocks ids in the page. So when I used my goBack() function, instead of reloading the last page, it gives me the same page with the latest clicked inks.
I thought I had a solution. I incremented a variable each time the user click on a link in the list, for then use the incremented var as a parametre of history.go() but it doesn't work.
<script>
var count;
function backward()
{
    count = -1;
    count--;
    return alert(count);
};
if(typeof count != "undefined")
{
    function goBack()
    {
        history.go(count);
    }
}
else
{
    function goBack()
    {
        history.back();
    }
}
</script>
 
     
     
    