I don't use hashes so forget about the hashchange things. (using "/" and then only in some extra menus "#"-s)
Can't I just make a function something like:
"whenbackbuttonisclicked" function(){
history.back();
}
and the same for forward?
I don't use hashes so forget about the hashchange things. (using "/" and then only in some extra menus "#"-s)
Can't I just make a function something like:
"whenbackbuttonisclicked" function(){
history.back();
}
and the same for forward?
You should be able to do something with the onpopstate event, and potentially editing the history object to remove the page change. You will want to do some research into how different browsers handle this event.
https://developer.mozilla.org/en-US/docs/DOM/window.onpopstate
There are quite a few StackOverflow questions related to popstate - that might be a good place to begin your research.