Save or load Javascript String as file

I have a HTML string in a javascript variable. I need to save / load a string as a file when a link is clicked. It must be browser compatible.

I thought window.open with attachment Content-Disposition header, but not a good solution because the popup might be blocked.

+2


source to share


1 answer


As mentioned here , you can use downloadify: https://github.com/dcneiner/Downloadify . The client will need to use flash.



+2


source







All Articles