How can I save data taken from a user from output of the code in HTML? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

How can I save data taken from a user from output of the code in HTML?

Like someone has opened my code's output and the code takes some value from him. After he leaves and enters again the value he entered before would be gone. How can I save that value? Thanks for answering.

5th Oct 2017, 12:16 PM
Isair Calhawk
Isair Calhawk - avatar
3 Respuestas
0
use localStorage.
5th Oct 2017, 12:56 PM
CHMD
CHMD - avatar
0
Can you please give more details?
5th Oct 2017, 12:57 PM
Isair Calhawk
Isair Calhawk - avatar
0
Here are some basic examples on how to store, retrieve, and delete information using the localStorage. https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage The Sololearn HTML course also provides some clarifications about it.
5th Oct 2017, 1:07 PM
CHMD
CHMD - avatar