2

Is it possible to store HTML5 local storage data to some other .txt or .doc or excel file?

Because, i want to backup the local storage data to some other file.

vishnu
  • 405
  • 2
  • 10
  • 17
  • See http://stackoverflow.com/questions/2845603/import-export-html5-localstorage-data for an answer – Aaron D Apr 01 '13 at 04:06

2 Answers2

1

You can create a client side file using HTML5. This link shows how to do that. Be careful though, not all browsers support this feature.

Azeem Bande-Ali
  • 305
  • 2
  • 8
1

If your question is asking whether it is possible to tell the browser to translate local storage to a .txt or .doc file, the answer is no. Local storage is implemented in the browser and stays in the browser (as defined by W3C).

If you want to have some mechanism that converts local storage data to a file system file, you probably want to use the File API instead.

Brandon
  • 284
  • 2
  • 7