0
How do we detirmine the syntax for the values?
When we are looking at Storing or Getting values is the syntax for these always going to be "key1" and "value1" or do we define them. Would it be "password1" and the local storage location for the password on the PC or how does that work? How does one define the value syntax?
1 Answer
+ 2
Syntax for web-storage is always:
Storage.setItem('key','value');
var val = Storage.getItem('key');
Each internet domain has his own web-storage space... avoiding cross-site data exchange for security reasons ^^