Thanks!
It didn't work either. I wonder whether it's because I have multiple frameset.
This is my frame code
<frameset ROWS="12%,*">
<frameset cols="30%,*">
<frame SRC="logo.htm" NAME="top1">
<frame SRC="menu.asp" NAME="top2">
</frameset>
<frame SRC="frmlogin.htm" NAME="main">
</frameset>
At menu.asp, I have a javascript print function and I have also tried a parent.parent. It's still printing itself only:
<SCRIPT LANGUAGE=javascript>
<!--
function printNow() {
parent.frames[2].print();
//parent.parent.frames[2].print();
}
//-->
</SCRIPT>
Any ideas? Thanks.