Skip to content

Instantly share code, notes, and snippets.

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