javascript - history.back() not working for li element -
i used history.back() or history.back(-1) navigate previous screen clicking on li element in mvc application. not working. found similar problem here cant use solution cant give li type='button' ?
function gobackscreen() { window.history.back(); return false; }
if back
id added li
$(document).ready(function(){ $('#back').click(function(){ if(document.referrer.indexof(window.location.hostname) != -1){ parent.history.back(); return false; } }); });
Comments
Post a Comment