History APIs with Iframe
You are currently in page: 0
Explanation
The window and the iframe share the same history object. When you navigate through the history, the iframe will also navigate irrespective of where you called the history API.
When a new ifrmame is added, it lacks the history entry till the point it was added. Hence, if you navigate multiple step together, the newer iframe will not update the history.