Click to See Complete Forum and Search --> : Is it possible to put the name to an archive to be saved?


arturion
08-18-2003, 12:27 PM
exists a script to save a page:

window.document.execCommand('saveAs');

is there a way to suggest the name of the new file from the script, or must be inputed in the dialog box "save as"?

Khalid Ali
08-18-2003, 12:38 PM
MS might have some activeXcontrol for this,but its beyond JavaScripts scope

pyro
08-18-2003, 12:39 PM
Try this:

<a href="#" onclick="window.document.execCommand('saveAs',true,'file.txt'); return false;">Save</a>

But remember that execCommand is IE only...