How to print a frame by issuing command in another frame? Merci Beaucoup...

jabber (jabber)
I have a JavaScript question. Thanks for telling me how-to.

Let me examplify my question. I have a .HTML page, which contains two frames.
Frame 1 contains some meaningful contents.
Frame 2 contains a hyperlink under "Print",
with onClick attribute related to a JavaScript function. My purpose is to print the contents of Frame 1. I don't have luck here---Each time I click my link, I print out Frame2.

Enclosed is the skeleton code for Frame 2.

<html>
<title>FRAME 2</title>
<SCRIPT LANGAUGE="JavaSCRIPT">
function printFrame1(){
parent.Frame1.print();
}
</SCRIPT>
</head>
<body>

<A href='#' onclick="printFrame1()" > Print</a>
</body>
</html>
(#17629@0)
2000-12-8 -05:00

回到话题: How to print a frame by issuing command in another frame? Merci Beaucoup...

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT杂谈

URL:   
http://www.rolia.net/zh/post.php?f=0&p=17629