WEB无控件打印.javascript里有一个方法竟然可以调出打印窗口,而且不用安装任何控件.下面是用window.open()实现的。有兴趣的朋友再加工一下,就可以实现打印指定页面的内容的了。<head><script language=javascript>function print(){ var sHTML = '<body>哈哈哈,无控件WEB打印</body>'; var oWin = window.open('', 'printwindow', 'menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=400,height=300');
if(oWin) { oWin.document.open(); oWin.document.write(sHTML); oWin.document.close(); oWin.print(); oWin.close(); } else { }}</script>
</head><span οnclick="print()">Click Here To Print</span>