<SCRIPT LANGUAGE="JavaScript">
<!--
function saveHtml() {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f = fso.OpenTextFile("C:\\a.html", 2, true);
f.Write(document.documentElement.outerHTML);
f.Close();
fso = f = void(0);
};
window.onload = saveHtml;
//-->
</SCRIPT>
<!--
function saveHtml() {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f = fso.OpenTextFile("C:\\a.html", 2, true);
f.Write(document.documentElement.outerHTML);
f.Close();
fso = f = void(0);
};
window.onload = saveHtml;
//-->
</SCRIPT>
{
var w = window.open("about:blank", "Excel", "widht=0, height=0");
w.document.write(atblData.outerHTML);
w.document.execCommand('Saveas',false, 'C:\\log.xls'); }