What is localStorage Object in HTML5?

Posted by Ramesh Singh | Updated on

HTML localStorage Object: The localStorage object stores the data with no expiration date. The data will not be deleted when the browser is closed, and will be available the next day, week, or year.

Below is an example of localStorage Object in HTML5:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers