<OBJECT  id=WebBrowser  classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2  height=0  width=0></OBJECT
<input  type=button  value=打印          onclick=document.all.WebBrowser.ExecWB(6,1)>                         
<input  type=button  value=打印预览  onclick=document.all.WebBrowser.ExecWB(7,1)>  

解决方案 »

  1.   

    <input type=button onclick="window.print()">
      

  2.   

    调用IE的打印预览?
    acewang(**^o^**)不是告诉你了么 :
    <OBJECT  id=WebBrowser  classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2  height=0  width=0></OBJECT>
    <input  type=button  value=打印预览  onclick=document.all.WebBrowser.ExecWB(7,1)>
      

  3.   

    <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
    <a herf="#"onClick="document.all.WebBrowser.ExecWB(7,1)" href="#">打印预览</a>"WebBrowser"为object的id
      

  4.   

    document.all.WebBrowser是什么意思?