Все способы передавать данные на страницу Onether в JavaScript
var favoritemovie = sessionStorage.getItem("favoriteMovie");
console.log(favoritemovie);
Precious Pygmy
var favoritemovie = sessionStorage.getItem("favoriteMovie");
console.log(favoritemovie);
var favoritemovie = "Shrek";
sessionStorage.setItem("favoriteMovie", favoritemovie);
var favoritemovie = "Shrek";
sessionStorage.setItem("favoriteMovie", favoritemovie);
Javascript in Page 2: