Get local storage item
Posted: Tue Jun 30, 2015 9:04 am
why doesn' this work?
var lan = localStorage.getItem("language");
alert(lan);
I can do it with set property so the variable exists.
Thanks.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
why doesn' this work?
var lan = localStorage.getItem("language");
alert(lan);
I can do it with set property so the variable exists.
Thanks.
No worries, fixed it. I assumed that if a label value could be set using the set property that the local variable existed. Obviously not, so i created a local variable and call that. It worked.