![]() |
VOOZH | about |
The Window sessionStorage() property is used for saving key/value pairs in a web browser. It stores the key/value pairs in a browser for only one session and the data expires as soon as a new session is loaded.
Syntax:
window.sessionStorage
Return Type: it returns Storage object
Below program illustrates the Window sessionStorage() property :
Creating a sessionStorage name/value pair.
Output:
After clicking the button:
Supported Browsers: The browser supported by Window sessionStorage( ) Property are listed below: