Online Shopping : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

44 of 73 people (60%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

Can I use the document.execCommand() method to save a file without popping the "Save As" dialog?

Apr 7th, 2008 22:34
ha mo, Michael Davison, Kenny Mok,


document.execCommand has the following syntax:
  bSuccess = document.execCommand("SaveAs" [, bUserInterface][, sValue])
The second argument, which is optional, specifies whether or not to 
show the dialog when saving the file.  The default is to show the 
dialog, but if you specify 'false' the command will try to save the 
file to the filename given in sValue.  Of course, if sValue is not a 
valid file or path, this will not succeed.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com