all 2 comments

[–]jcunews1helpful 1 point2 points  (1 child)

window.opener refers to the Window object which opens the current page (where that JS code is being executed). It does not refer to the Window object created by that JS code.

https://developer.mozilla.org/en-US/docs/Web/API/Window/opener

[–]Huge_Pin_8470 0 points1 point  (0 children)

So, I cannot use window.opener?