I am using Ben Luptons's History.js in an iPad web app. When in full screen app mode I have a back button that when tapped calls History.back();
That works fine, unless you have run out of states to go back to. Essentially, on initial load, or if you hit back enough times to return to the original page that loaded.
I need to return the number of states available and only go back if there is one available. For example:
if( pagesAvailable > 0 )
History.back();
I hope that makes sense and someone can offer some help
Thanks,
Will