Noemi Kris
New member
- Joined
- Oct 1, 2024
- Messages
- 1
- Points
- 1
I have a question. Hoe do i can store a variable into a cookie?
For example i have the function:
function log(){
var userinput = {
Name: document.getElementById('name').value
}
Var user = userinout.name;
}
Hoe can i store the 'user' variable into a cookie, and how can i automaticly fill this input from the user after reloading website into for example Forms?
Thx for your answers
For example i have the function:
function log(){
var userinput = {
Name: document.getElementById('name').value
}
Var user = userinout.name;
}
Hoe can i store the 'user' variable into a cookie, and how can i automaticly fill this input from the user after reloading website into for example Forms?
Thx for your answers