Web Storage:
Web Storage
suggest changeSyntax
- localStorage.setItem(name, value);
- localStorage.getItem(name);
- localStorage.name = value;
- localStorage.name;
- localStorage.clear()
- localStorage.removeItem(name);
Parameters
| Parameter | Description |
|---|---|
| name | The key/name of the item |
| value | The value of the item |
Remarks
The Web Storage API is specified in the WHATWG HTML Living Standard.
Found a mistake? Have a question or improvement idea?
Let me know.