Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

105
Views
Save a value in HTML after it is changed

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.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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')
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!