<title> Save pages </title>
<body>
<object classid= "CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
height= "0" width= "0" id=webbrowser></object>
<input type= "button" value= "Save Web Page" onclick= "WEBBROWSER.EXECWB (4,1)" >
</body>
Method Two
<input Type=button value= Save As Onclick=document.execcommand (' SaveAs ', false, ' c:\test.htm ') >
Method Three
<input Name=button ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (4,1) Type=button value= Save as ><object classid= CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=webbrowser width=0></object>
See a Save as an instance
Save as a specified file or page
function savehtm (p_filename)
{
VA r winname = window.open ('.. /upload/' +p_filename, ' _blank ', ' top=10000 ');
Winname.document.execcommand (' SaveAs ', ', ', p_filename);
winname.close ();
}
//Save as Current page
<input Type=button value= Save as HTM onclick= Document.execcommand (' SaveAs ', ' true ', ' xrx.htm ') ">
<p align=" center ">
<input type=button value= Save as txt onclick=" Document.execcommand "(' SaveAs ', ' tr UE ', ' xrx.txt ') ' ></p>