Retrieve child window reference after refresh

后端 未结 5 1665
小鲜肉
小鲜肉 2021-01-17 18:32

I have an HTML5 offline app (i.e. there\'s no server-side component/code).

It basically has two windows (parent and child). However, in some instan

5条回答
  •  情书的邮戳
    2021-01-17 19:28

    Sounds like a pretty complex solution. Why don't you put the content of the parent window in an invisible iframe (i.e. one without a border) and just refresh the frame?

    That would allow you to save the reference to the frame and child window in the top document where both could access it.

提交回复
热议问题