I'm trying to save changes to the html code of my page made by a javaScript interaction. More precisely, I want the table I create with js to keep the html changes saved.
localStorage.setItem("resposta", document.querySelector("#tabela-anagrama"));
localStorage.getItem("resposta")
When I do a console.log to see what is written in the localStorage the response is [object HTMLTableRowElement]
My question is the following how do I record the html code and cause when I refresh the page the table comes back already with the changes recorded?