[Javascript] Automatically save a webpage locally

JS Student tuofamerikazmostwanted at gmail.com
Thu Oct 4 01:31:49 CDT 2007


Hi,

I am trying some thing like following to show the user the "save as" dialog box.

document.execCommand("SaveAs", true, "somefile.htm");


The problem with this is that it only saves a single HTML page. Images
and other media doesn't get saved with this. My question is, is there
a way I can save the whole document including images etc like the
browser's "file => save as" menu option?

I am using IE 6+.

Thanks for any help.



More information about the Javascript mailing list