Does storage work in web?(html) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Does storage work in web?(html)

When you write programs here on the web, will local storage work and save stuff on the user of your program? Cause I havent seen anyone use that feature yet

17th Jan 2019, 8:24 PM
Alex
Alex - avatar
4 Answers
+ 2
//Yes html5 has local storage stuff meanwhile in sololearn code playground is not supported or developer don't want us to use that here because of security and privacy issues https://www.sololearn.com/learn/HTML/2197/
17th Jan 2019, 8:34 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
thats what I thought! Thanks for clarifying!
17th Jan 2019, 8:39 PM
Alex
Alex - avatar
0
So..... you're saying that you cannot extract a actual photo from a local device's storage, (my laptop) as a URL to use the img src so the code can find the photo? And if not you're saying to use the alt= attribute, and this will replace the photo with text?
18th Jan 2019, 7:05 AM
Raul Ramirez
Raul Ramirez - avatar
0
No my question was regarding the js abillity to store variables in the user’s local storage (like cookies). And it has nothing to do with the <img> tag of html
18th Jan 2019, 1:18 PM
Alex
Alex - avatar