Answers for "how to send data in a url from one js to another"

0

how to send data in a url from one js to another

//first js page
var favoritemovie = "Shrek";
sessionStorage.setItem("favoriteMovie", favoritemovie);
 
//second js page
var favoritemovie = sessionStorage.getItem("favoriteMovie");
console.log(favoritemovie);
Posted by: Guest on May-19-2021

Code answers related to "how to send data in a url from one js to another"

Code answers related to "Javascript"

Browse Popular Code Answers by Language