Is there a way to save the window's z-index?

I have created several windows and attached divs, charts and grids. Is there any automatic way to save the z-index of the windows? My application has several windows that the user can click on and move around. I am currently using homemade cookies to remember the last position, but on refreash the z-order is not retained. Is there an easy way to do this (something like the autosave cookie features available for grids)

Unfortunately, there is not such built-in feature.

Okay thanks for the quick response.
I am okay to manage the z-index state myself but is there a way to set a z-index value for a window. Ideally something like:
win.style.z-index = 5;

Hi,

possibly bringToTop() and bringToBottom() methods can be used:
dhtmlxWindows/samples/04_z-coordinate/03_z-position.html

You may also try win.style.zIndex = 5;