整个页面由三个frame组成,想“打印预览”主框架frmMain中的页面内容?
解决方案 »
- 在jquery 下错误提示document.selection.CreateRange().text;
- 怎样提取<a>要提取的内容</a>
- 各位帮我看看是不是Ajax传值写错了??
- 主窗口如何控制showModelessDialog窗口中的控件
- 初学者基础问题
- js的无间隙滚动,为什么高度设置到230就不行了,不能滚动???
- jquery easyui datagrid 的问题
- JS能做到吗
- 简单问题
- 在<iframe>中所链接的网页,加了较大的js文件,在整个网页加载时有点慢,怎么让js在父窗预加载后在<iframe>使用?
- 求救!用JS写了个软键盘,怎么样实现切换输入法呢?
- window.self和top,open()带参数啥意思?帮我
</OBJECT>
<input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,6)>
<input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
<input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>onclick="top.focus();top.print();"
<input name="Button" onClick="document.all.hiddenframe.ExecWB(7,1);" type="button" value="打印预览">
<iframe frameborder="0" height="10%" width="100%" name="hiddenframe" src="test.htm"></iframe>
<body>
<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>