Interview
    C#
    VB.Net
    VC++
    ASP.Net
    ADO.Net
    .Net Framework
    Silverlight
    WPF(Windows Presentation Foundation)/XAML
    WCF(Windows Communication Foundation)
    Java
    PHP
    AJAX
    Assembly
    XML
    Wireless/Mobile Development
    Cold Fusion
    MSSQL Server 2000/2005/2008/2012
    MYSQL
    DB2
    MS Access
    Java Script
    VB Script
    JQuery
    Testing
    BlackBox Testing
    WhiteBox Testing
    OOPS
    SharePoint
    ASP.NET MVC
    HTML5
    CSS/CSS3
    IIS 7
    Windows 8
    Google API
    Facebook API
    Twitter API
    Android Programming
    iPhone/iPad Programming
    Windows Phone Programming
    Json
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Advertisement
Advertise with Us
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit Question | Search 
Report Abuse Form
Reason:    
 
Interview
Home >> HTML5 >> How to store data on client in HTML5?

How to store data on client in HTML5?

Posted By Rohit Kesharwani on 8/29/2011
Views: 1890
Major Category: Other Programming
Sub Category: HTML5
Total Answer 1
User Information Answer
• Rohit Kesharwani
Posted Date 8/29/2011

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>


Report Abuse

Report Abuse Form
Reason:    
 
Total Online Users: 2825
Advertisement
MindStick DataConverter
Advertise with Us
  
Copyright © 2013MindStick. All Rights Reserved.