opening a browser window in JS
Posted on 2012-03-17
I want to display a document in a seperate browser window so I use window.open with the url to the document.
No problems... it works.
However the next time i want to display a document i want to use the same browser window... so the user does not have lots of windows open.
I see there is a windows.location.replace and other methods that maybe i can use... but how can i tell if the window is still open... as i guess then a "replace" would do nothing?
Any help or advice appreciated.