When to use window.opener / window.parent / window.top

后端 未结 4 1305
野的像风
野的像风 2020-11-28 19:27

In JavaScript when to use window.opener / window.parent / window.top ?

4条回答
  •  醉酒成梦
    2020-11-28 19:50

    when you are dealing with popups window.opener plays an important role, because we have to deal with fields of parent page as well as child page, when we have to use values on parent page we can use window.opener or we want some data on the child window or popup window at the time of loading then again we can set the values using window.opener

提交回复
热议问题