datactrl wrote:
Hi, all
When I use window.showModelessDialog() to open a window. And then on the
opened window to open an another window with the same function,
window.showModelessDialog(). The last opened one is always on the top of the
first opened one. Is there any "work around" to have the first opened one go
to the front? Thanks in advance!
Jack
window.showModelessDialog() returns a window object reference that appears to
respond to the standard window object interface, for example:
var w1 = window.showModelessDialog('http://www.microsoft.com');
var w2 = window.showModelessDialog('http://www.yahoo.com');
w1.focus();
appears to work correctly. So perhaps after you open the 2nd modeless dialog,
call window.focus() on the initial modeless dialog to pull focus back to it.
Untested.
--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq