登录 | 注册 | FAQ
Anonymous

Use of local storage in HTML5

+ 发表回复

4 篇帖子 分页: 1 / 1


Use of local storage in HTML5

riyaz123 » 周六 10月 04, 2014 10:46 am

I want to know about the local storage in HTML5.
头像

riyaz123

  • 帖子: 15
  • 注册: 周六 7月 05, 2014 7:57 am

Re: Use of local storage in HTML5

XainPro » 周四 10月 09, 2014 11:36 am

check out this
http://html.net/tutorials/html5/lesson24.php
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: Use of local storage in HTML5

Farhin Qureshi » 周四 1月 19, 2017 12:08 pm

Hi,

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.

Syntax
代码: 全选
myStorage = localStorage;


Value
A Storage object.

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

代码: 全选
localStorage.setItem('myCat', 'Tom');


Thanks,
头像

Farhin Qureshi

  • 帖子: 45
  • 注册: 周二 1月 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com

HTML Date set in table

taibul » 周三 2月 15, 2017 7:55 pm

Only Date set my table top .I nerd help.
头像

taibul

  • 帖子: 1
  • 注册: 周三 2月 15, 2017 7:50 pm


+ 发表回复

分页: 1 / 1