top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

WHAT ARE THE DIFFERENT TYPES OF STORAGE IN HTML5?

0 votes
124 views
WHAT ARE THE DIFFERENT TYPES OF STORAGE IN HTML5?
posted Nov 26, 2015 by Jayshree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

HTML5 offers two new objects for storing data on the client:
LocalStorage
– stores data with no time limit

<script type=“text/javascript”>
localStorage.lastname=“ZAG”;
document.write(localStorage.lastname);
</script>

SessionStorage – stores data for one session.The data is deleted when the user closes the browser window.

<script type=“text/javascript”>
sessionStorage.lastname=“ZAG”;
document.write(sessionStorage.lastname);
</script>
answer Nov 26, 2015 by Shivaranjini
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...