Back to index
|DOMString||key (in unsigned long index)|
|Retrieve the name of the key at a particular index. |
|nsIDOMStorageItem||getItem (in DOMString key)|
|Retrieve an item with a given key. |
|void||setItem (in DOMString key, in DOMString data)|
|Assign a value with a key. |
|void||removeItem (in DOMString key)|
|Remove a key and its corresponding value. |
|readonly attribute unsigned long||length|
|The number of keys stored. |
Retrieve an item with a given key.
|key||key to retrieve|
Retrieve the name of the key at a particular index.
|index||index of the item to retrieve|
|INDEX_SIZE_ERR||if there is no key at that index|
Remove a key and its corresponding value.
|key||key to remove|
Assign a value with a key.
If the key does not exist already, a new key is added associated with that value. If the key already exists, then the existing value is replaced with a new value.
|key||key to set|
|data||data to associate with the key|