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' ?<code>image here</code>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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -