[This documentation is preliminary and is subject to change.]
Represents the list of key/value pairs that have been assigned to a single storage area.
Standards information
Remarks
Each Storage object provides access to a list of key/value pairs, which are sometimes called items. Keys are strings, and any string (including the empty string) is a valid key. Items contain values (which are also strings) and associated metadata.
Each Storage object is associated with a list of key/value pairs when it is created. Multiple Storage objects, such as two instances of localStorage, can be associated with the same list of key/value pairs simultaneously.
Examples
Key names are exposed as properties on this object. For example, the following statements are equivalent:
sessionStorage.setItem('myKey', '...');
sessionStorage['myKey'] = '...';
sessionStorage.myKey = '...';
See also
-
localStorage
Build date: 2/14/2012