Causes the list associated with the object to be emptied of all key/value pairs, if there are any.
Method of apis/web-storage/Storageapis/web-storage/Storage
Syntax object.clear();
Return Value
No return value
ExamplesThe following button clears the local storage area for the current domain.
<button onclick="localStorage.clear()">
Clear Stored Values</button>
Notes
sessionStorage is cleared immediately. localStorage key/value pairs are removed from memory, and disk storage quota is updated.
Related specificationsMicrosoft Developer Network: Windows Internet Explorer API reference Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4