Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6060381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:49:08+00:00 2026-05-23T08:49:08+00:00

Is there a JavaScript library that allows to save strings as txt files, and

  • 0

Is there a JavaScript library that allows to save strings as txt files, and works cross-browser?

In the past, I have been using Downloadify, but I am looking at another option for a couple reasons:

  • I hope to find a pure JavaScript solution, without the need for Flash
  • it seems that Downloadify is not updated anymore
    (no update in the past 18 months)
  • I am experiencing an issue with Downloadify in IE 9, where strings are cut off
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:49:09+00:00Added an answer on May 23, 2026 at 8:49 am

    As far as I know, the only way is to use data: URLs to force a download:

    var data = "This is a test";
    window.location.href = "data:application/x-download;charset=utf-8," + encodeURIComponent(data);
    

    Two catches here:

    • It won’t work in MSIE because its support of data: URLs is very limited (supposedly for security reasons). So you will still need Downloadify there.
    • You cannot specify a file name, the suggested file name will depend on the browser used. And file type will be “unknown” (you cannot use a known MIME type because the browser won’t offer to download the file then).

    Bonus reading: there was a W3.org discussion in February 2010 on fixing the second problem: http://lists.w3.org/Archives/Public/uri/2010Feb/thread.html#msg58. However, this doesn’t seem to have made it into any specification so far, let alone browser implementations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering is there a JavaScript library available that would allow me to generate
is there any javascript library that provides me with a custom event as soon
If there is a javascript library that is licensed under a Copyleft license like
Is there a jQuery plugin or javascript library that supports a genie animation effect
Is there a c# library that can help to write and indent Javascript code.
Does anyone know if there is a common javascript library to enable scrolling that
Is there a library that allows me to manipulate graphical components similar to Quartz
Is there any PHP framework/library that allows me to do something like: $element =
Is there a Javascript or some library that would create a datepicker for a
Is there a JavaScript library that can perform timing of the webpage when it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.