aharrisreid
Programmer
I have a button on a page which calls the IE 'Save As' dialog using onClick="document.execCommand('SaveAs')". This works well, but the user is presented with a default filename taken from the URL, and the default type is HTML. There are occassions where I would like to define the filename eg. to MyFile.txt and type as text (.txt). Is there any way of doing this, perhaps passing parameters to execCommand?
Also, does anyone know of a good resource where I can get a full listing and desciptions of all execCommand functions?
Any help would be appreciated.
Alan