Keep on top

Is there a way to keep an xWindow on top of all other windows? I open windows like JavaScript’s alert() and need them to stay in front of it’s “parent” window, and any others that may open while this alert is open.



Make it an option?



AlertWindow.stayOnTop();


You can choose one of the following methods:


1) win.bringToTop();


the sample is dhtmlxWindows/samples/z-coordinate/z-position.html


2) win.setModal(true)


dhtmlxWindows/samples/z-coordinate/modal.html


Right after I posted it, I found what I wanted: AlertWindow.stick();



Thanks