I am using:
to open a new tab to display image pages in a landscape photography site.Code:win = window.open(windowURL, windowName);
The image pages are available by clicking on links available in several different parts of the site. In order to prevent a proliferation of tabs I am using the same windowName each time an image page is requested. This way the existing tab is re-used. Everything works as required.
I am looking for a way to work around this. I can’t use a different window name for my own pages because I am also accessing it elsewhere in another script. The ideal scenario would be for me to re-name the existing window once it no longer contained content from my site.
This would preserve the users own page and allow my site to continue with the original name. However understandably, as far as I can tell, this can’t be accessed once a page external to my site occupies the tab.Code:win.name = “new windowName”;