Trying to store data in a clicker website
问题 I am trying to store a variable called score that you use again and again no matter when you refresh. What I cannot figure out is what would be the code for that. I tried some ways but none of them seem to work at all. This is for my clicker website. But when I try using JavaScript to store it, it does not work with window.onload and as well as onload= . Also my load maybe is right because I have a score = data with a document.getElementById('points').innerHTML = score; . My code is shown