[英]How can I show the window print dialog using JavaScript in Google Chrome?
I'm using JavaScrpt window.print()
function to print out the document. 我正在使用JavaScrpt
window.print()
函数打印出文档。 But here is a problem in Google Chrome when window.print()
function is run it shows the Chrome print dialog not window print dialog. 但是当运行
window.print()
函数时,这是Google Chrome中的问题,它显示的是Chrome打印对话框而不是窗口打印对话框。 How can I show the window print dialog in Google Chrome? 如何在Google Chrome浏览器中显示窗口打印对话框?
It is behaving correctly see this for more information. 可以正确查看此信息以获取更多信息。
The window object represents an open window in a browser.
窗口对象代表浏览器中打开的窗口。
If a document contain frames ( tags), the browser creates one window object for the HTML document, and one additional window object for each frame.
如果文档包含框架(标签),则浏览器将为HTML文档创建一个窗口对象,并为每个框架创建一个其他窗口对象。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.