I would like to have an offline website -- HTML/JavaScript/CSS in some format (a folder, zip, SingleFile, or MHTML) -- that has a form that a user A can enter data into, and then have that data saved to the website somehow so that it can be transferred to another user B, who can open it and see the data. The idea is to mimic functionality like you find in an form-fillable PDF.
Data can easily be saved using localStorage
but then it resides in user A's browser. As I understand it a website cannot save files directly to the harddrive. So how could this be accomplished? The only thing I could think of is to have the form "export" the data to some JSON that user A would have to copy, paste into an editor, and save to the appropriate location on the local website. But perhaps there is a better solution?