Created
September 20, 2018 19:50
-
-
Save praveen-me/a5c11606f6893a9d5840b17095713b74 to your computer and use it in GitHub Desktop.
Chrome Extension Blog
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
//function for set User Details | |
function getDetails(e) { | |
e.preventDefault(); | |
const userName = document.getElementById('user-name_value').value; | |
JSON.stringify(localStorage.setItem('userNameKey', userName)); | |
userDetailsBlock.style.display = "none"; | |
greetBlock.style.display = 'block'; | |
setGreet(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment