setItem( key, value ) method

Storage

Syntax

setItem( key, value )

Parameters

Name Type Description
key string String key corresponding to the value.
value string String value to store.

Example

// Create the SUP Storage
var store = new hwc.SUPStorage ("one");
store.setItem ("foo", "bar"); // add an item.

Source

SUPStorage.js, line 233.