Local storage is part of the HTML5 Web Storage API and it allows you to store data in the browser. Unlike cookies, data stored using local storage isn’t sent back to the server. All data stays on the client, and you can currently store from 2MB to 10MB. This limit is tied to the specific browser, protocol (HTTP or HTTPS), port, and top level domain in use.
Potentially Dealbreaking Downsides:
Local Shared Objects allows Flash objects to store up to 100 KB of data per domain.
### HTML5 STORAGE
HTML5 Storage: it’s a way for web pages to store named key/value pairs locally, within the client web browser.
### STORAGEEVENT OBJECT
PROPERTY | DESCRIPTION |
---|---|
key | named key that was added, removed, or modified |
oldValue | the previous value (now overwritten), or null if a new item was added |
newValue | the new value, or null if an item was removed |
url* | the page which called a method that triggered this change |
<script type="text/javascript>
localStorage.removeItem(key); //Remove A Single Desired KEY From Local Storage
</script>
<script type="text/javascript>
localStorage.setItem("key", "value"); //Set A Single Desired KEY-VALUE In Local Storage
</script>
<script type="text/javascript>
var getValue = localStorage.getItem("key"); //Get A Single Desired KEY's VALUE From Local Storage
</script>
<script type="text/javascript>
localStorage.clear(); //Clear All Local Storage KEY-VALUE
</script>