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:
use this to access the history of iframe
document.getElementById("test2").contentWindow.history.length