Answers for "local storage 2do html"

0

local storage 2do html

<h1 id="welcome"> </h1>
<script>
    window.onload = function() {
        document.getElementById('welcome').innerText = "Hello, " + sessionStorage.getItem('userName');
    };
</script>
Posted by: Guest on September-02-2021

Browse Popular Code Answers by Language