What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 18013 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > HTML, DHTML Interview Questions > what are the different types of storage ...

what are the different types of storage in HTML 5?

Interview question and answer by: Sagnikmukh | Posted on: 5/4/2011 | Category: HTML, DHTML Interview questions | Views: 3024 | | Points: 40


Answer:

HTML5 offers two new objects for storing data on the client:

LocalStorage - stores data with no time limit

<script type="text/javascript">

localStorage.lastname="Smith";
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="Smith";
document.write(sessionStorage.lastname);
</script>


details on W3schools : http://www.w3schools.com/html5/default.asp

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


 Responses

Posted by: Akiii | Posted on: 11 Jul 2011 01:41:04 AM | Points: 10 | Alert Moderator 

nice information....

Thanks and Regards
Akiii

>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Sagnikmukh

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 1:34:58 AM