I have a link in a remote window that will blur itself and focus the opener window. The problem that I'm running into now is checking from the opener to see if the remote window is open so I can focus it. Here's what I have so far but I'm getting errors.
Basically what's happening is that the existing feedbackWin is being focused and reloaded instead of just being focused.
There is a form on the child window that will contain data before the user clicks to focus the parent... so I'm trying to keep the data that's in the form rather than just reloading the child window.
Any help is greatly appreciated
Code:
var feedbackWin;
if (!feedbackWin) {
feedbackWin=window.open(url,'feedback',settings);
}
else {
feedbackWin.focus();
}
There is a form on the child window that will contain data before the user clicks to focus the parent... so I'm trying to keep the data that's in the form rather than just reloading the child window.
Any help is greatly appreciated