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
Post a Comment