Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

getItem method

Retrieves the current value associated with the Web Storage key.

Web Storage, Section 4.1Internet Explorer 8


 retVal = object.getItem(bstrKey);


bstrKey [in]

Type: BSTR

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

Standards information


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

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

See also




Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.