-
In sessionStorage object data __________.
-
- is deleted after the browser has been closed
- can be seen as well as edit
- can be seen but can’t edit
- is not deleted after the browser has been closed
- None of these
Correct Option: A
sessionStorage object works same as localStorage object except the data is stored for one session only. When the use closes the browser the data is deleted. Syntax is
sessionStorage.firstname-“Tanya”; document.getElementById(“fo”).innerHTML= sessionStorage.firstname;