+ 2

How can I save user input permanently with javascript?

So I am making an countdown clock extension for chrome, and I want to save the user input so they don't have to enter their date everytime they open the extension, is there anyway to do this? Here is my code // Set the date we're counting down to var userInput = prompt ("Enter Your Date"); var countDownDate = new Date(userInput).getTime();

19th Apr 2018, 11:38 AM
Branden Dawson
Branden Dawson - avatar
2 Réponses