If the doc is open for the first time, a new doc window will open and if the same doc is open again, the existing window should be set active. Currently keep opening new windows instead show already opened window. How can i achieve this. please advise.
var openwindow =