how to implement "back to" functionality using JavaScript for all browser -


widndow.history.back() not working in firefox in chrome.
in firefox goes previous page , comes current page , forth.
in chrome going previous page , that's previous page , on..
how can implement functionality(as in chrome) in firefox browser..

    <div class="link2back"><a href="javascript:void(0)" onclick="history.back()" class="col-xs-12">back ... </a></div> 

<a href="index.jsp" id="backbutton">go back</a>   var backbutton = document.getelementbyid("backbutton"); backbutton.onclick = function(e){   e = e || window.event;    e.preventdefault();    window.history.back(); } 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -