I have a problem, I am trying to save a value when it's changed, also this changes for everyone i.e whoever sees it online. So take this site for example: https://scorecount.com/tennis/ when the click on the 0 it turns 15 but if you refresh the page it turns back to 0, so I want a way using javascript to save this 15 score added and saved until the next value and this change should be visible to everyone. Thanks so much for the help.
You can use localstorage in javascript to set the score.
localStorage.setItem('score', Your score here)
You can retrieve it with
localStorage.getItem('score')
You can clear it with
localStorage.removeItem('score')