Created
September 15, 2016 14:41
-
-
Save gunesacar/b366e3b03231dbee9709fe0a614faf10 to your computer and use it in GitHub Desktop.
This file contains hidden or 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://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