Created
February 20, 2019 15:07
-
-
Save questsin/49b373e3b12836dc895e0caf317f76df 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>blank</title></head> | |
<body> | |
<script> | |
// Store | |
localStorage.setItem("lastname", "Smith"); | |
// Retrieve | |
document.getElementById("result").innerHTML = localStorage.getItem("lastname"); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment