I created a code that stores the data in the localstorage, but now I need the data that is in the localstorage to appear on the screen. So I want to know how I can do this. (Note: I'm developing a form)
(html)
<button id=""cadastro" onclick="cadastro">Cadastrar</button>
(js)
window.onload = function (){
document.querySelector("#cadastro").addEventListener("click",cadastrar)
}
function cadastrar(){
localStorage.setItem(nomeTabela.value, nomePropriedade.value);
}