Skip to content Skip to sidebar Skip to footer

Window.opener Is Not Working

I'm working on a webpage that opens up a popup child window by clicking an image on the parent window. And I would like to pass the value from the child window's text box to the pa

Solution 1:

Imagine for a moment that you use window.open to create "myWindow" and then from within "myWindow" you use window.open to create "windowTheSequel".

You now have two "openers", e.g. the original browser window and "myWindow". Therefore, opener wouldn't know which window to reference without the child (myWindow) as a reference.

So begin the line with myWindow.opener... and you should be good to go.

Post a Comment for "Window.opener Is Not Working"