persist

persist
Type: space-separated list of attribute names
A space-separated list of attributes that are maintained when the window is closed. When the window is re-opened, the values of persistent attributes are restored. In Mozilla, persistent attributes are stored in the per-profile file localstore.rdf. Persistence can also be stored using the document.persist function. In order for persistence to work, the element must also have an id. Persistence will not remember the absence of an attribute, so for boolean attributes like checked where absence means false, you will need to explicitly set the attribute to false before the window closes (bug 15232).

Document Tags and Contributors

Contributors to this page: Sheppy, Enn, Marsf, Np, Mgjbot, Ptak82, Okome, Dria
Last updated by: Sheppy,