I have the following code, which I would like to open in a new Tab (assuming user options are set to have that as the preferred behavior):
var qaWindow = window.open('', 'proqa', null);
This is working fine in Chrome, but is opening a new window in FF and IE.
The reason I need to do it this way (without a url), is that I only want the page to load the first time it is opened. On subsequent calls, I need to call out to the window/tab without causing a reload.
The subsequent code looks like this:
if (qaWindow.location == "about:blank") {
var url = "/chat/index/" + urlparams.id;
qaWindow.location = url;
} else {
qaWindow.callMe(urlparams.id);
}
qaWindow.focus();
Is there any way to accomplish both?