Answers for "session storage delete"

7

remove localstorage

localStorage.removeItem("key");
Posted by: Guest on October-18-2020
2

remove session storage

sessionStorage.removeItem('key');
Posted by: Guest on June-18-2021
12

javascript localStorage clear items

localStorage.clear();//this clears the localStorage completely
Posted by: Guest on April-01-2020
0

clear session storage on refresh

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

Code answers related to "session storage delete"

Code answers related to "Javascript"

Browse Popular Code Answers by Language