网页打印的问题
z3h 2002-08-14 04:32:09 <html>
<head>
</head>
<body>
father Page
<script>
function showPage(url) {
h = 400;
w = 550;
t = ( screen.availHeight - h ) / 2;
l = ( screen.availWidth - w ) / 2;
return window.open ( url, "userInfo", "left=" + l + ",top=" + t + ",height=" + h + ",width=" + w + ",toolbar=no,status=no,scrollbars=yes,resizable=no" );
}
var printWindow = showPage ("about:blank");
printWindow.document.write("<html></html><title></title>");
printWindow.document.write("<body>son Page</body>");
printWindow.document.write ("</html>");
</script>
</body>
</html>
上面的代码。我想打印弹出窗口中的。“son Page”,但是,IE打印得却是父窗口的内容。father Page。
怎么样才能打印子窗口的内容呢!