<SCRIPT type="text/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);
}
</SCRIPT>