The signature of window.open is as follows.
var windowObjectReference = window.open(strUrl, strWindowName[, strWindowFeatures]);
MDN notes that
If a window named strWindowName already exists, then strUrl is loaded into the existing window. In this case, the return value of the method is an existing window, and strWindowFeatures is ignored. Providing an empty string for strUrl is a way to get a link to open a window by its name without changing the location of the window.
So this should work for you.
window.open('', 'windowName', '');
According to MDN, whenever a window opens, a link to it is created,
var windowObjectReference = window.open("http://www.google.com", "popup", "width=500,height=500");
You can always download it using this link, for example
if(windowObjectReference != null || !windowObjectReference.closed) { windowObjectReference .focus(); }
Strike>
source share