karayan
05-31-2003, 09:49 PM
I have a piece of code that opens a window, loads an HTML file in it, and then tries to save it:
var myWin = window.open("test.htm");
myWin.document.execCommand("SaveAs");
This works fine, except, it opens up the SaveAs dialog and wants to save it as a plain HTML file, not a complete site. That means that it saves the HTML code, but not the images in its <img> tags. (The manual SaveAs menu selection in IE allows you to save as a complete site, HTML and images in a separate folder.) How do I make IE save it as a complete site?
Also, where can I find complete documentation on the execCommand() method?
Thanks.
George
var myWin = window.open("test.htm");
myWin.document.execCommand("SaveAs");
This works fine, except, it opens up the SaveAs dialog and wants to save it as a plain HTML file, not a complete site. That means that it saves the HTML code, but not the images in its <img> tags. (The manual SaveAs menu selection in IE allows you to save as a complete site, HTML and images in a separate folder.) How do I make IE save it as a complete site?
Also, where can I find complete documentation on the execCommand() method?
Thanks.
George