Refresh the parent window from the child window in javascript

前端 未结 4 1628
梦谈多话
梦谈多话 2021-01-18 17:59

I have looked for awhile and cannot find an answer that fits my needs. I have a page that pops a window (window.open), logs the user in (creates a cookie, set session) then

4条回答
  •  心在旅途
    2021-01-18 18:25

    If none of the other suggestions work (Remember to test in all major browsers), you can also try passing a reference of the parent window to the child window explicitly. Because window.open() should return a reference to the child window.. so you can do child = window.open() and then you can do something like child.myParent = window

提交回复
热议问题