Class: LocalStorage

html.LocalStorage

Class representing a storage for persisted properties, such as user preferences.

The properties are persisted in the HTML5 local storage, if available, and their values must be JSON-serializable.

Note: Multiple instances of the same document share the same local storage and instances will see changes made by other instances immediately.

new html.LocalStorage ()

Properties:
Name Type Description
namespace string

(default: "") A namespace for distinguishing multiple instances.

Extends