Skip to content

Instantly share code, notes, and snippets.

@eljabbaryhicham
Created August 1, 2021 21:12
Show Gist options
  • Save eljabbaryhicham/09d800f95041268ffb8fe5d2107d3393 to your computer and use it in GitHub Desktop.
Save eljabbaryhicham/09d800f95041268ffb8fe5d2107d3393 to your computer and use it in GitHub Desktop.
window.addEventListener('load', ()=>{
var input1 = document.getElementById('id_1');
var input2 = document.getElementById('id_2');
input1.value = sessionStorage.getItem('name');
input2.value = sessionStorage.getItem('value');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment