I want to store a file to a local machine.
For HTML5, we can use cookies
and local storage
to store data to a local machine.
Local storage uses key-value
pairs (json
) to store data.
However, I want to save data in a different format, in XML for example.
On websites such as convertonlinefree.com, when a file has been converted, the file will automatically begin downloading.
So, I am considering a way to do this: When the user clicks a button, the XML file would automatically be downloaded. Is this possible? If so, how could I do that?