Skip to content Skip to sidebar Skip to footer

Obtain Reference To Existing Browser Window

I'm 99% sure that the answer to my question will be no but just in case... Use case: Webpage A opens a new window B with JavaScript (same domain) The user refreshes A or navigates

Solution 1:

Yes

function openWin() {
  w = window.open("","windowname"); // use the window name you gave it when you opened it
  if (w && !w.closed) ...
}

Post a Comment for "Obtain Reference To Existing Browser Window"