I need to open a URL in a new window the first time it is opened. The second time, the URL should open as a tab in that newly-created window. I tried with window.open(url, "", "width=900, height=900");
, but it is opening in a new window each time.
Is it possible to force the URL to open in a tab after it the new window is created?