请问如何打印iframe里面的内容? function prn(){var a=window.open("")a.location=document.all.IframeID.srca.focus()a.print()} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看看精华区和FAQ里面,有类似的问题 <html><head><script language="javascript">function prn(){mxh.focus();print();}</script></head><body><input onclick="prn()" type="button" value="print_Iframe"><br><iframe id=mxh src="http://www.google.com" width="500" height="300" ></iframe></body></html> 正则表达式 去除script脚本 请教关于查找关键字 JAVASCRIPT 做的WEB打印能否打印表格内带有图像 ? 请问我的这个程序是那里错了啊... 如何判断<div>的打开关闭状态? 关于鼠标特效! 关于日期的输入的问题请教 如何用javascript判断点击了哪一个页面对象(比如哪个图片,按钮?) extjs4 如何根据grid创建store,model等组件 onload可以获取ready加载的值吗 请教:如何得到一个frame的关闭事件? 如何实现在页面上打印IFRAME中的文件?
<head>
<script language="javascript">
function prn()
{
mxh.focus();
print();
}
</script>
</head><body>
<input onclick="prn()" type="button" value="print_Iframe"><br>
<iframe id=mxh src="http://www.google.com" width="500" height="300" ></iframe>
</body>
</html>