Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mark Ritter on Aug 05, 2009 11:16
open dhtmlx forum
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();
Answer posted by Alex (support) on Aug 06, 2009 01:38

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

Answer posted by Mark Ritter on Aug 06, 2009 10:22

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

Thanks