Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

js pass data between pages

//first page
var favoritemovie = "Shrek";
sessionStorage.setItem("favoriteMovie", favoritemovie);

//second page
var favoritemovie = sessionStorage.getItem("favoriteMovie");
console.log(favoritemovie);
Comment

PREVIOUS NEXT
Code Example
Javascript :: JavaScript querySelector - By Tag name 
Javascript :: js replace whole word and not words within words 
Javascript :: how to creacte react component 
Javascript :: Warning: Internal React error: Expected static flag was missing. Please notify the React team. 
Javascript :: passing props in react functional components 
Javascript :: server smtp 
Javascript :: @viewchild in angular :use for take any refrerence of element 
Javascript :: convert string to boolean in javascript 
Javascript :: get last element in array javascript 
Javascript :: anagram javascript 
Javascript :: js export options 
Javascript :: jquery numeric validation 
Javascript :: javascript parallax effect 
Javascript :: process.env type 
Javascript :: js document on load 
Javascript :: add another column without delete table sequelize 
Javascript :: Enqueuing JavaScript in WordPress 
Javascript :: reset event listener javascript 
Javascript :: sequelize date format 
Javascript :: eslint stop compliant import from node_modules 
Javascript :: Angle Between Hands of a Clock 
Javascript :: unknown provider angularjs 
Javascript :: angular $http abort request 
Javascript :: elif in js 
Javascript :: check a letter in astring js 
Javascript :: if else statement javascript 
Javascript :: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime in cypress tests 
Javascript :: vanilla document.ready function 
Javascript :: defined variables if null javascript 
Javascript :: online password generator 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =