Instance Method

getItem

Returns the current value of a key.

Declaration

any getItem(in DOMString key);

Parameters

key

The key whose value is being returned.

Return Value

If the key exists, its current value; otherwise, null.

See Also

Reading and Writing Settings

setItem

Sets the value of a key.