开发者

How to open print-preview page upon clicking on hyperlink?

Every browser has print preview command in their File menu I want to make "print" button on HTML page and upon clicking i want to open print preview page. is this possible?

With this we can 开发者_运维知识库open print options <a href="javascript:window.print()">Print this page</a>

but can we open print-preview page instead print options ?


window.print() is the only print-related function in window.

However, if you have defined a dedicated css-file for print, you can create a page that simulates a print-preview by only using the print stylesheet. And then open this in a popup or new window.


No you can't. However there is a way to show that in IE by using ActiveX and some others for other browsers...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜