WebIDLpedia

Storage interface

Definition

HTML Standard defines Storage



[Exposed=Window]
interface Storage {
  readonly attribute unsigned long length;
  DOMString? key(unsigned long index);
  getter DOMString? getItem(DOMString key);
  setter undefined setItem(DOMString key, DOMString value);
  deleter undefined removeItem(DOMString key);
  undefined clear();
};

Methods and attributes that return objects implementing Storage

Referring IDL interfaces/dictionaries

Referring specifications