angularjs - Javascript history api - window.history.forward() availability -
i have back/next buttons set phonegap app built in angular.js.
i'm using partials in angular pages , using window.history simple back/next buttons. working i'd add visual feedback when , next functionality becomes available.
is there way check if history.forward available? next page wont known, dont think looking through pages in history viable solution this, shouldnt kneed know page on or pages app contains, (sudo)
if(window.history.forward()){ // show buttons available }else{ // show buttons not available }
sadly history returns undefined, there other way?
any suggestions great
thanks
history
doesn't allow this, still can history.length
check if there history @ (if not - disable both buttons).
or can "dirtyhack" wrapping whole site or app 100% width|height borderless iframe on "index" page , log iframe's hisory "manually" top window (not advised @ all; work same domain only; not work "x-frame-options:deny" on server).
Comments
Post a Comment