Track only iframe history

后端 未结 6 700
囚心锁ツ
囚心锁ツ 2021-01-13 06:06

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:



        
6条回答
  •  旧巷少年郎
    2021-01-13 06:54

    use this to access the history of iframe

    document.getElementById("test2").contentWindow.history.length
    

提交回复
热议问题