How to save innerhtml to text file, html file on some folder using java script?
<p>I am using .aspx page, i want to save some data on button click, which i extracted using function</p>

<pre><code> function save() {
            var t1 = document.getElementById('test').innerHTML;
            alert(t1);
        }
</code></pre>

<p>to .text file, .html file some folder on desktop.
the folder should appear, where i can save the file with any extension of .text or .html.</p>
