datactrl wrote:
Hi, all
When I use window.showMode lessDialog() to open a window. And then on the
opened window to open an another window with the same function,
window.showMode lessDialog(). 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.showMode lessDialog() returns a window object reference that appears to
respond to the standard window object interface, for example:
var w1 = window.showMode lessDialog('htt p://www.microsoft.c om');
var w2 = window.showMode lessDialog('htt p://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*****@agrico reunited.com>
comp.lang.javas cript FAQ -
http://jibbering.com/faq