Skip to content

theonicolaou/localstorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

localstorage

A basic example of how to use HTML5 LocalStorage. Type a username and password into the fields and click "Log in" to display the data in an alert. The data is stored at this point. Then you can retrieve it by clicking "Show Data".

To test that LocalStorage is working, remove the localStorage.setItem lines in the script.js code, then fill in the fields and click "Log in". The alert will display the values but clicking the "Show Data" button will display "null".

About

A basic example of how to use HTML5 LocalStorage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors