Removes all items from the storage.
Returns the value for the given
name if present.
Name of the item to retrieve.
Returns all items in the storage as name/value pairs.
Removes the item with the given
name. No-op if the item
is absent.
Name of the item to remove.
Sets the value for the given
name. Overwrites any
existing value for that name.
Name of the item to set.
New value for the item.
WebStorage exposes the page's
localStorageorsessionStoragefor the current origin via an async, browser-consistent API.Instances are accessed through page.localStorage and page.sessionStorage.