打印的时候,没有返回值的,
不好判断
window.print()Return Value
No return value.ResCalling the print method has the same effect as choosing Print from the Microsoft® Internet Explorer File menu. The print method activates the Print dialog box, prompting the user to change print settings. When the user clicks the OK button, the following sequence of events occurs: The onbeforeprint event fires. //打印之前触发的事件
The document prints. //文件打印
The onafterprint event fires. //打印这后,触发的事件,看看能不能在这儿想法子The onbeforeprint and onafterprint events are particularly useful when not all the information on the page is visible at all times. Use the onbeforeprint to modify the document to make all the information on the page visible for printing. To return the document to its original state, use the onafterprint event.
不好判断
window.print()Return Value
No return value.ResCalling the print method has the same effect as choosing Print from the Microsoft® Internet Explorer File menu. The print method activates the Print dialog box, prompting the user to change print settings. When the user clicks the OK button, the following sequence of events occurs: The onbeforeprint event fires. //打印之前触发的事件
The document prints. //文件打印
The onafterprint event fires. //打印这后,触发的事件,看看能不能在这儿想法子The onbeforeprint and onafterprint events are particularly useful when not all the information on the page is visible at all times. Use the onbeforeprint to modify the document to make all the information on the page visible for printing. To return the document to its original state, use the onafterprint event.
解决方案 »
- select下拉菜单的option选项换行
- js笔记,顺便BS下写博客文章保存发表不了.
- 如何得到一个页面所有数量文本框input的合计值
- 请问这些有什么区别language="javascript",language="jscript",type="text/javascript",type="text/Jscript"
- 请问javascript的this对象问题?
- 网站中有很多页面是通过js跳转的,怎样获取js中的URL?
- 菜鸟提问!在本机上有个bat文件会每天执行调用一个js新建一个以日期为文件名的文件夹,然后我在调用..........
- 谁用过NetMeeting的CallTo()函数呀,急!在线等。没用过也来看看呀。
- js里如何跳出函数?相当于vb里的exit sub
- 如何在保证性能的前提下持续不断的向一个div中追加文本?
- 怎样调用IE的刷新功能?在线等待
- 谁能帮我实现这样的效果?
function window.onafterprint()
{
alert("ok")
}
</script>