- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to store data in the browser with the HTML5 localStorage API?
HTML5 localStorage saves string data in the browser and lasts beyond the current session. localStorage stores the data, with no expiration, whereas sessionStorage is limited to the session only. When the browser is closed, the session is lost.
The Local Storage is designed for storage that spans multiple windows and lasts beyond the current session. In particular, Web applications may wish to store megabytes of user data, such as entire user-authored documents or a user's mailbox, on the client side for performance reasons.
You can try to run the following code to learn how to work with HTML5 localStorage
- How to use HTML5 localStorage and sessionStorage?
- How to delete a localStorage item when the browser window/tab is closed?
- IE supports the HTML5 File API
- How to use HTML5 GeoLocation API with Google Maps?
- How to allow the restricted resources from another domain in web browser with HTML5
- Uniquely identify files before uploading with the HTML5 file API
- Which browsers support the HTML5 History API?
- Microdata API in HTML5
- Store and retrieve arrays into and from HTML5 data attributes with jQuery?
- How to check web browser support in HTML5
- How to find the size of localStorage in HTML?
- How to use HTML5 Geolocation Latitude/Longitude API?
- HTML5 applicationCache vs Browser Cache
- How to invoke the Chrome browser in Selenium with python?
- How to invoke the Firefox browser in Selenium with python?