Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js session storage

sessionStorage.setItem('mode','dark');
const mode = sessionStorage.getItem('mode');
console.log(mode); // 'dark'
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #js #session #storage
ADD COMMENT
Topic
Name
8+2 =