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
here to record

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
Cookies. So for example:
thanks, I will try! - dena.Bins commented on April 3rd 20 at 17:40

Find more questions by tags JavaScriptHTML