jsp页面点击打印按钮调用系统 的打印功能
<script language=javascript> function prt() { var btn_obj = document.getElementById("printbtn"); btn_obj.style.display="none"; print(); btn_obj.style.display=""; } </script>
<input type=button class="buttoncls" onclick="javascript:prt();" value="打 印"/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<!-- 去掉打印时的页眉页脚 -->
<style media="print"></style>
</head>