<script language="JavaScript">
function Print(editor) { 
editor.document.execCommand('print','',null); 
}
</script>然后用一个按钮的onclick触发事件.

解决方案 »

  1.   

    也可以:
    链接:<a href="#" onclick=document.execCommand("print")>打印</a>
    按钮:<button onclick="document.execCommand('open')">Open</button>
      

  2.   

    没办法自由控制客户端的打印接口
    <button onclick="window.print()" ....
      

  3.   

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

  4.   

    sorry,应该是:
    按钮:<button onclick="document.execCommand('print')">Print</button>
      

  5.   

    flyyingpig(会飞的猪)的观点我同意!!
    打印控件有下载的嘛!!
      

  6.   

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