<input type=button value=打印 onclick="window.print()"><!-- IE5.5以上 -->
<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(6,6)>
<input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
<input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
<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(6,6)>
<input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
<input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
解决方案 »
- 给node添加onclick事件,多个相同的node添加相同的事件。。。
- 求教HTML的问题
- this作用域问题
- js 小问题,大家来看下
- 为什么alert(undefined !== false);alert(undefined !== true);结果都是true?
- 请问如何在A页面中链接到B页面的框架中呢
- JS中用XMLHTTP的问题,100分!
- 500个录入页面,页面包含各种输入框,有的输入框只能输入数字,有的只能输入英文,求便捷的解决方式
- 帮我看看这个location该怎样写呀?我要跳转的页面是xxdf_report.php
- 难道juqery中不能用document.write吗
- 我想问一下在javascript里的innerheigth是什么意思?
- 怎么解决这个bug
@media print {
.prnNot {display:none;}
}
</style>
<body>
<div class="prnNot"> 这里不打印出来</div>
<div> 这里会打印出来</div>
</div>