Is it possible somehow set window.opener value to no null without window.open calling? I need something like this: window.opener = object; window.location.href = "link"; because in the "link" is check or link is opened in the popup window or no, I need that it would be "opened" in the popup.