Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE 'Save As' dialog

Status
Not open for further replies.

aharrisreid

Programmer
Nov 17, 2000
312
GB

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
 
cbokowski, thanks for the reply. The link is useful, but in true MSDN tradition, it's not as helpful as it could be.

Regards,
Alan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top