I am writing a webapp that utilizes localstorage. I have it setup now to save to the local storage with the following format:
Key: Four digit number
Value: My data
I need to take all the separate data from the localStorage, and output it to a single file with the following format:
XXXX <- Four digit key
Data
-linebreak-
How would I go about doing this? Also, is it possible to somehow take all this information, and send it via email. Or some way to get it out of localstorage and to clipboard so the user can copy it into their email.
Thanks ahead.
As for the email part you could try using a
mailto:like this,This could be combined into a function like this:
Usage: