IHTMLStorage interface

Represents a key/value list from Web Storage.

Members

The IHTMLStorage interface inherits from the IDispatch interface. IHTMLStorage also has these types of members:

  • Methods
  • Properties

Methods

The IHTMLStorage interface has these methods.

Method Description
clear

Removes all key/value pairs from the Web Storage area.

getItem

Retrieves the current value associated with the Web Storage key.

key

Retrieves the key at the specified index in the collection.

removeItem

Deletes a key/value pair from the Web Storage collection.

setItem

Sets a key/value pair.

 

Properties

The IHTMLStorage interface has these properties.

Property Description

length

Retrieves the length of the key/value list.

remainingSpace

Retrieves the remaining number of UTF-16 characters allowed for the storage object.

 

Remarks

This is the object returned by IHTMLWindow6::sessionStorage or a specific instance of IHTMLWindow6::localStorage.

Requirements

Minimum supported client

Windows XP with SP2

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch