New course! Every coder should learn Generative AI!
Try a free lesson0
Ex :
<form action="" class="" method="">
<input id="email" name="" type="email">
</form>
you can store email like this :
var inputemail= document.getElementById("email");
localStorage.setItem("email", inputemail.value);
If you want to get item then :
var outputemail = localStorage.getItem("email");
I hope this will help you.