This example demonstrates how to use the key() method to get the name of a session storage item.
Since you might not have any items stored in your session storage, we have added a script that creates some for you.
Click the button to get the name of the first session storage item: