I am studying about local storage in HTML5 and JS, understanding that its purpose is to store texts in local / p>
When testing, I got JS errors. I would like to understand why:
<scripttype="text/javascript">
function exibir(){
document.getElementById("nome").value = localStorage.getItem("l_nome");
}
</script>
<body onload="exibir();">
<form>
Nome: <input type="text" id="nome">
<input type="button" onclick="salvar();" value="Save">
</form>
</body>