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: = 5;


possibly bringToTop() and bringToBottom() methods can be used:

You may also try = 5;