Answers for "sessionStorage.clear();"

5

javascript clear localstorage

window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item
Posted by: Guest on July-31-2019
0

clear session storage on refresh

window.onunload = function () {
	sessionStorage.removeItem('key');
}
Posted by: Guest on September-19-2020
0

sessionstorage clear

sessionStorage.clear();
Posted by: Guest on October-10-2021

Code answers related to "sessionStorage.clear();"

Code answers related to "Javascript"

Browse Popular Code Answers by Language