2

I have an HTML string in javascript variable. I have to save/Download the string as a file on link click. It should be cross browser compatible.

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

Brij
  • 6,086
  • 9
  • 41
  • 69

1 Answers1

2

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

Community
  • 1
  • 1
Spiny Norman
  • 8,277
  • 1
  • 30
  • 55