How to force the browser to save changes in an html page?

Hello! know that you can force the browser via special. variables to remember the data on the page. For example, I have my Tudu list even after off. remembers the page in the browser made items. Roughly speaking, to clean the cache remembers everything.

Now I created a todo-list for js. Through the input tag make paragraphs on an html page, but of course, after page refresh - all data (menu items) disappear.

question! is there a way to force the browser to remember what I did in js?
April 3rd 20 at 17:33
2 answers
April 3rd 20 at 17:35
Solution
here to record
https://learn.javascript.ru/localstorage
https://developer.mozilla.org/ru/docs/Web/API/Wind...

localStorage.setItem('toDo', '["Case number one, Case number two"]');
thanks for the help! unsubscribe, if possible. maybe will give everyone who helped modulistic) - dena.Bins commented on April 3rd 20 at 17:38
April 3rd 20 at 17:37
Solution
Cookies. So for example: www.codenet.ru/webmast/js/Cookies.php
thanks, I will try! - dena.Bins commented on April 3rd 20 at 17:40

Find more questions by tags JavaScriptHTML