+ 1
I cant use this plz someone help??
How to use web storage
2 Réponses
+ 4
sessionStorage.setItem(key,value);
sessionStorage.getItem(key);
sessionStorage.removeItem(key);
sessionStorage.key(index);
sessionStorage.clear();
sessionStorage.length;
localStorage.setItem(key,value);
localStorage.getItem(key);
localStorage.removeItem(key);
localStorage.key(index);
localStorage.clear();
localStorage.length;
0
by reading the instructions ;-)