Created
September 14, 2016 15:36
-
-
Save gunesacar/1feea0c10286ba9d27948a0a827cb115 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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