<body>
在同一个Domain时<br>
<input onclick='document.frames("mxh").print()' type=button value=print_Iframe><br>
<iframe id=mxh src="d:\hhh.htm"></iframe>
在同一个Domain时<br>
<input onclick='document.frames("mxh").print()' type=button value=print_Iframe><br>
<iframe id=mxh src="d:\hhh.htm"></iframe>
我的iframe中放的是一个文本文件。
<input onclick='prn()' type=button value=print_Iframe><br>
<iframe id=mxh src="d:\hhh.htm"></iframe>
<script>
function prn()
{
var win=window.open("about:blank")
win.moveTo(1200,1200)
win.location=document.all.mxh.src
win.print()
}
</script>