I am using .aspx page, i want to save some data on button click, which i extracted using function
function save() {
var t1 = document.getElementById('test').innerHTML;
alert(t1);
}
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.
Javascript in the browser has no file i/o capabilities. The best you can do is popup a window with just the text you want to save and then save using the browser or send the text to the server and have it serve up the appropriate download mime-type as a new page.