Javascript网页打印方法汇总 |
您所在的位置:网站首页 › 打印网页背景设置 › Javascript网页打印方法汇总 |
1.打印某个frame的内容(frameB) frameA中添加 2.打印某个对象中的内容,如textbox中的内容 frameA: frameB: function printotherframe() { parent.FrameB.formB.textboxb.focus() parent.FrameB.formB.submit() } 3.打印非当前页 技术同上,只是在frame显示中动一点点骗人的手脚
4.统一页眉页脚 //save existing user's info var h = factory.printing.header; var f = factory.printing.footer; //hide the button document.all("printbtn").style.visibility = 'hidden'; //set header and footer to blank factory.printing.header = ""; factory.printing.footer = ""; //print page without prompt factory.DoPrint(false); //restore user's info factory.printing.header = h; factory.printing.footer = f; //show the print button document.all("printbtn").style.visibility = 'visible'; } //--> 5.打开新窗口并自动打印 html中 |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |