+ 3
LocalStorage
I wanna make an application with html and js. why LocalStorage.setItem('number' , 7) and then LocalStorage.getItem('number') in another html page not working in some smartphones? and what are alternative ways to do this?
4 odpowiedzi
+ 4
Try it with js cookies
+ 3
I think so . I can't exactly say about the code as I also not know much about it
+ 1
Is the following correct for setting the cookie?
document.cookie = " number=7; expires= Thu, 20 Dec 2019 20:00:00 UTC; path=/";
my problem is that I don't know how to get this cookie?
Please help me out ♡
+ 1
Actually I want to use this number in a function in another html page inside script tags.