Login | Register | FAQ

Use of local storage in HTML5

+ Post a reply

4 posts Page 1 of 1

Use of local storage in HTML5

by riyaz123 » Sat Oct 04, 2014 10:46 am

I want to know about the local storage in HTML5.
User avatar


  • Posts: 15
  • Joined: Sat Jul 05, 2014 7:57 am

Re: Use of local storage in HTML5

by XainPro » Thu Oct 09, 2014 11:36 am

check out this
User avatar


  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: Use of local storage in HTML5

by Farhin Qureshi » Thu Jan 19, 2017 12:08 pm


The localStorage property allows you to access a local Storage object. localStorage is similar to sessionStorage. The only difference is that, while data stored in localStorage has no expiration time, data stored in sessionStorage gets cleared when the browsing session ends—that is, when the browser is closed.

It should be noted that data stored in either localStorage or sessionStorage is specific to the protocol of the page.

Code: Select all
myStorage = localStorage;

A Storage object.

The following snippet accesses the current domain's local Storage object and adds a data item to it using Storage.setItem().

Code: Select all
localStorage.setItem('myCat', 'Tom');

User avatar

Farhin Qureshi

  • Posts: 45
  • Joined: Tue Jan 03, 2017 11:33 am
Farhin Qureshi
.NET Developer

HTML Date set in table

by taibul » Wed Feb 15, 2017 7:55 pm

Only Date set my table top .I nerd help.
User avatar


  • Posts: 1
  • Joined: Wed Feb 15, 2017 7:50 pm

+ Post a reply

Page 1 of 1