can any body tell me how i create a .txt file using javascript which is browser compatable too.
and after creating the file it gives the save as diaglog box so that
If you're looking for IE only solution, try this:
function createFile() { set fso = new ActiveXObject("Scripting.FileSystemObject"); set s = fso.CreateTextFile("C:\test.txt", True); s.writeline("HI"); s.writeline("Bye"); s.writeline("-----------------------------"); s.Close(); }