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?

3rd Feb 2017, 2:22 AM
Tony Linder
Tony Linder - avatar
1 ответ
+ 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 ^^
3rd Feb 2017, 6:06 AM
visph
visph - avatar