Downloading a variable
<p>Is it possible, in Javascript, to prompt user for downloading a file that isn't actually on the server, but has contents of a script variable, instead?</p>

<p>Something in spirit with:</p>

<pre><code>var contents = "Foo bar";
invoke_download_dialog(contents, "text/plain");
</code></pre>

<p>Cheers,</p>

<p>MH</p>
