Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Internet Explorer
Web Applications
HTML5 Web Storage
Objects
 HTMLStorage object
HTMLStorage object

[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.

HTML5 A vocabulary and associated APIs for HTML and XHTMLInternet Explorer 8

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker