Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

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.

 

 

文档标签和贡献者

标签: 
 此页面的贡献者: ziyunfei, Cuimingda
 最后编辑者: ziyunfei,