Forum Moderators: open
However if you're asking the user to save a file, you don't need any fancy tricks; just make a link to the file on your server, and the browser takes care of the rest.
If the file being requested has an "undisplayable" MimeType, the user will be prompted to save it.
"displayable" = [HTML, TXT, JPG, SWF, etc]
"undisplayable" = [JS, ZIP, XYZ, etc]
Thanks for the reply. Actually, I cannot save the file on server as the content of the file is dynamically generated at client side. I was able to successfully perform this functionality in IE by using execCommand. I want to achieve similar performance on Mozilla too.
The content should be saved in a text file.
Thanks