<html>
<head>
<title>
打印
</title>
<script language="javaScript">
function print( ){
//window.open ( "1.html", '', "height=768, width=1024, toolbar=no, scrollbars=yes, menubar=no, top=0, left=0" );
newWindow=window.open("","",width=150,height=150);
var newContent="<html><head><title>打印预览</title></head>";
newContent+="<BODY onload = 'window.print( )'><H1>一个新的窗体测试</H1>";
newContent += "</BODY></html>"
newWindow.document.write(newContent);
newWindow.document.close();
}
</script>
</head>
<body>
<img alt="打印" src="images/oaprinter.gif" onClick="print( )" style="cursor:hand"/>
</body>
</html>
打印网页
最新推荐文章于 2021-12-12 13:39:40 发布