I have a page which contains an iframe and I want to track the history of the iframe only. I tried to use the history object like this:
Chrome manages history on window base; not on separate frames. This behaviour is probably the cause of your problem.
Dont know if its default behaviour for all browsers btw.
Edit: You have to maintain your navigationhistory server side. Keeping an array on the mainwindow, as stated in another answer, doesnt work when you also navigate with the parent window.