I hope you are great! May someone shed a light on this one
Use case
Page A opens page B with window.open()
Refresh page A and try to focus page B with window.open() again.
Code
if (!window.memwin || window.memwin.closed) {
window.memwin = window.open(URL, "windowName", "",true)
}
window.memwin.focus();
Problem
The focus on page B happens but the page is reloaded. Is there any method to overcome this issue? I want the page B to be focused without been reloaded.
*(If page A is not reloaded then focus to page B with window.open() will not reload the page B)