Skip to content

indydedeken/webStorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Web Storage (sessionStorage & localStorage)

Spec W3C : http://www.w3.org/TR/webstorage/#contents D'après un article de alsacreations.com (celui-ci).
Testing web storage, some examples of using.

The Storage interface

localStorage.length; // no comment
localStorage.key(Unsigned long index); // return the name of the key
localStorage.getItem("String key"); // get the value of the key
localStorage.setItem("String key", "String value"); // set a couple of key/value 
localStorage.removeItem("String key"); // remove a specific key
localStorage.clear(); // delete all keys

About

Testing webstorage with localStorage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published