Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Internet Explorer
Web Applications
HTML5 Web Storage
Methods
 getItem method
getItem method

[This documentation is preliminary and is subject to change.]

Retrieves the current value associated with the Web Storage key.

Web Storage, Section 4.1Internet Explorer 8

Syntax

var retval = Storage.getItem(bstrKey);

Standards information

Parameters

bstrKey [in]

Type: BSTR

The name of the key (a valid UTF-16 string, including the empty string).

Return value

Type: VariantReturns the value associated with the key specified in bstrKey.

Remarks

Any valid UTF-16 string, including the empty string, is a valid key name.

If the specified bstrKey does not exist in the list associated with the object, then this method returns null.

Attempts to read or write a secured item from script running in the context of an unsecured URL are not permitted.

See also

Storage
setItem

 

 

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