Hi,
[B][U]Summary
I have a new Browser Window being created to display a document. I need a way to get that new Browser Window to recieve the focus (problem is that I need to be able to do it a time which is long after its creation).
[B][U]Detail
My main application allows a document to be displayed in a [B][U]new
[CODE]function openPreviewWindow( strURL, bDisplayFullScreen )
{
if(bDisplayFullScreen)
{
var previewString;
previewString = ‘width=’ + (screen.availWidth – 10) + ‘, ‘;
previewString += ‘height=’ + (screen.availHeight – 50) + ‘, ‘;
previewString += ‘status=yes, menubar=no, scrollbars=yes, toolbar=no, resizable=yes, top=0, left=0’;
preview_window = window.open(strURL, ‘preview_window’, previewString);
}
else
{
preview_window = window.open(strURL, ‘preview_window’, ‘width=870, height=546, status=yes, menubar=yes, scrollbars=yes, toolbar=no, resizable=yes’);
}
preview_window.focus();
}
This all works fine.
What I need to be able to do now is somehow write some JavaScript so that when my user does something (action irrelivant to this problem) the main application window can tell the new Browser Window (created in the window.open() function call above) to come back into focus. ie get the document to appear ontop of the main application window again.
Many thanks in advance to all those who respond. ?