Cross-browser Save As .txt

Here is what you need. But it’s not cross-browser yet. Works in Google Chrome.

<a download="MyFile.txt" 
   href="https://stackoverflow.com/questions/6464828/your-data-uri-here"
   draggable="true" 
   class="dragout"
>Download ready</a>

Also Wikipedia has a good article about Data URI

Leave a Comment

deneme bonusu veren sitelerbahis casino