Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9078793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:42:54+00:00 2026-06-16T19:42:54+00:00

I made a Local Web Game using Javascript and a very basic html page

  • 0

I made a Local Web Game using Javascript and a very basic html page so I don’t need and want to use a Server for my game !

But now I want to save some data (record for example) . So i made a Json file which I managed to read using $.getJSON and I was wondering if I could write in my json file using only Javascript ?

I don’t want to use any php script !

I look forward to your response !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T19:42:55+00:00Added an answer on June 16, 2026 at 7:42 pm

    Supposing you have a structure named scores.

    You can stringify it and store it in localStorage :

    function addScore(newScore) {
        scores.push(newScore);
        localStorage['scores'] = JSON.stringify(scores);
    }
    

    And then restore it at start of your program :

    var scores = localStorage['scores'] ? JSON.parse(localStorage['scores']) : [];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am publishing a web page to a local server through VS2010- I haven't
I am using OSX local web server and today I needed to set up
I have made a firefox extension which loads a web page using xmlhttprequest .
Using IE 8/VS 2010/IIS on Server 2008 Developing a web app in my local
I made an android application which connects to a local web service on my
I have local server for my site (i made it with XAMPP). How can
Which one would be faster - a local web app gui made with something
I've just made an upgrade and now partly thinking on web-server directory structure for
Currently I'm using PHP to load multiple XML files from around the web (non-local)
I had made one web application in Java using frameworks -struts 2.0, hibernate 3.0,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.