Answers

Question and Answer:

  Home  HTML5

⟩ Do you know What is the sessionStorage Object in html5? How to create and access?

The sessionStorage object stores the data for one session. The data is deleted when the user closes the browser window. like below we can create and access a sessionStorage here we created “name” as session

<script type=“text/javascript”>

sessionStorage.name=“PHPZAG”;

document.write(sessionStorage.name);

</script>

 161 views

More Questions for you: