摘要:js控制列印
<input class="ipt" type=button name=button_fh value="關閉視窗" onclick ="javascript:window.close();"> IE8可用-[加入安全性網站]<script language="javascript"> function printsetup(){ // 打印頁面設置 wb.execwb(8,1); } function printpreview(){ // 打印頁面預覽 wb.execwb(7,1); } function printit(){ if (confirm('確定列印嗎?')){ wb.execwb(6,6) } } </script> </HEAD> 這些東西有些已經被IE限制了! <OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=3></OBJECT> <input class="ipt" type=button name=button_print value="列印" onclick ="javascript:printit();"> <input class="ipt" type=button name=button_setup value="設定列頁面設置" onclick ="javascript:printsetup();"> <input class="ipt" type=button name=button_show value="列印預覽" onclick="javascript:printpreview();">