打印相关的js

<OBJECT   id=WebBrowser   classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2   height=0   width=0   VIEWASTEXT>   </OBJECT>        
      <input       type=button       value=打印                       onclick="document.all.WebBrowser.ExecWB(6,1)"       class="NOPRINT">        
      <input       type=button       value=直接打印       onclick="document.all.WebBrowser.ExecWB(6,6)"       class="NOPRINT">        
      <input       type=button       value=页面设置       onclick="document.all.WebBrowser.ExecWB(8,1)"       class="NOPRINT">        
      <input       type=button       value=打印预览       onclick="document.all.WebBrowser.ExecWB(7,1)"       class="NOPRINT">    
  <!--分页-->   
 <div       class="PageNext"></div>    

  <!--media=print       这个属性可以在打印时有效-->        
      <style       media=print>        
      .Noprint{display:none;}        
      .PageNext{page-break-after:       always;}        
      </style>        
原文地址:https://www.cnblogs.com/liuhaitao/p/1527824.html