如何打印当前窗口? document.frames[框架名].window.focus();document.frames[框架名].window.print(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 to vivianfdlpw() 就是想达到在一页纸里面,把所有的框架打印出来。 window.top.print();//按屏幕所列布局打印window.top.frames["frame1"].print();仅打印frame1for(i=0;i<window.top.frames.length;i++){window.top.frames[i].print();//逐个打印所有框架} 谢谢window.top.print();//按屏幕所列布局打印我试验了,并不是 “按屏幕所列布局打印“,而是 “逐个打印所有框架“ <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0 VIEWASTEXT> </OBJECT><input type=button value=打印 onclick="document.all.WebBrowser.ExecWB(6,1)" class="NOPRINT"><input type=button value=直接打印 onclick="document.all.WebBrowser.ExecWB(6,6)" class="NOPRINT"><input type=button value=页面设置 onclick="document.all.WebBrowser.ExecWB(8,1)" class="NOPRINT"><input type=button value=打印预览 onclick="document.all.WebBrowser.ExecWB(7,1)" class="NOPRINT"> 网页中嵌入quicktime调整画面大小 受不了了 !! window.returnValue返回值为undefined 不提交表单,怎样用JQ密码验证 如何让div一直保持在屏幕的最下面? 高分求救:如何把thunderbird的组件移植到xulrunner里 如何用js判断用户输入信息时包含某个词语时不给通过? 怎样获得浏览器的高度? js 如何让frame 的横向滚动条 位于中间位置? 如何得到访问用户的IP地址,并显示在页面上? 前端使用select2,该如何获取option中的value值? JS往JSP中传值的问题? javascript很短的一个代码,却出问题,大家看看
就是想达到在一页纸里面,把所有的框架打印出来。
window.top.frames["frame1"].print();仅打印frame1for(i=0;i<window.top.frames.length;i++)
{
window.top.frames[i].print();//逐个打印所有框架
}
window.top.print();//按屏幕所列布局打印
我试验了,并不是 “按屏幕所列布局打印“,而是 “逐个打印所有框架“
</OBJECT>
<input type=button value=打印 onclick="document.all.WebBrowser.ExecWB(6,1)" class="NOPRINT">
<input type=button value=直接打印 onclick="document.all.WebBrowser.ExecWB(6,6)" class="NOPRINT">
<input type=button value=页面设置 onclick="document.all.WebBrowser.ExecWB(8,1)" class="NOPRINT">
<input type=button value=打印预览 onclick="document.all.WebBrowser.ExecWB(7,1)" class="NOPRINT">