Skip to content

Instantly share code, notes, and snippets.

@gunesacar
Created September 15, 2016 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gunesacar/b366e3b03231dbee9709fe0a614faf10 to your computer and use it in GitHub Desktop.
Save gunesacar/b366e3b03231dbee9709fe0a614faf10 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>localStorage example</title>
<script src="https://gistcdn.githack.com/gunesacar/07098e29bdbcdb3ffe40/raw/eacd6885c9f10ccd97ce4ea425408f341409d3ee/gistfile1.js"></script>
<script type="application/javascript">
function read_ls() {
for(var key in localStorage) {
console.log(key + localStorage.getItem(key));
}
}
</script>
</head>
<body onload="read_ls()">
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment