вот моя версия. рабочая.
<span id="1">А д м и н и с т р а т о р</span>
<br>
<input type="button" onClick="Ok()" value="Ok" id="64">
<input type="button" onClick="save()" value="save" id="16">
<input type="button" onClick="del()" value="delate" id="32">
<input type="button" onClick="msg()" value="Текст">
<script>
function save()
{
var q=document.getElementById('1').innerHTML;
localStorage.setItem("Ok", q);
}
</script>
<script>
document.addEventListener("DOMContentLoaded",function Ok()
{
var q = localStorage.getItem("Ok");
{
document.getElementById("1").innerHTML=q;
}
});
</script>
<script>
function msg()
{
q= prompt("Сообщение:","");
{
document.getElementById("1").innerHTML=q;
}
save();
}
</script>
<script>
function del()
{
localStorage.removeItem("Ok");
}
</script>