为了安全起见,需要提示,可设置初始值
<input type=button onclick='document.execCommand("saveas",false,"d:")'>

解决方案 »

  1.   

    <Input Type=Button Value="另存为" onclick="document.execCommand('Saveas',false,'c:\\test.htm')">保存当前文档
      

  2.   

    谢谢,但如果存成MHT格式的话,好像没有这个选项,但用这个:
    <input type="button" name="Button" value="点击保存页面" onClick="document.all.WebBrowser.ExecWB(4,1)>
    <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">有这个选项。
      

  3.   

    C0440000,200304,E,GA2240,0.0,GA2241,0.0,GA2242,0.0,GC2120,0.0,GC2121,0.0,GC2122,0.0,GD1000,0.0,GD1100,0.0,GD1200,0.0,GD2000,0.0 C0440000,200304,E,GD3000,0.0,GD3100,0.0,GD3200,0.0,GD3300,0.0,GD3400,0.0,GD3500,0.0,GD4000,0.0,GD4100,0.0,GD4200,0.0,GD5000,0.0 C0440000,200304,E,GD5500,0.0,GD6000,0.0,GD6100,0.0,GD7000,0.0,GD8000,0.0  
    <input type=button value="保存" onclick='document.execCommand("saveas",false,"d:")'>
    怎样去掉后面的:<input type=button value="保存" onclick='document.execCommand("saveas",false,"d:")'>