这样,在另存为按钮加入onClick事件,具体代码为:onClick="document.execCommand('saveas','true','网页标题.htm')"即可

解决方案 »

  1.   

    <html>
    <head>
    <script language="javascript"> function printit()
    {
    wb.execwb(4,1)
    }
    </script>
    </head>
    <body>
    <OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0>
      </OBJECT>
    <input type=button name=button_print value="另存" onclick="javascript:printit()">
      

  2.   

    已经搞定,第一种方法只是将源码重新写成一个新的html的文件,而第二种则是真正的另存为功能.