javascript - How to open print-preview page upon clicking on hyperlink? -
Each browser has a print preview command in their file menu, I want to create a "print" button on the HTML page and click me Clicking to do is it possible to open the print preview page?
With it we can print option & lt; A href = "javascript: window.print ()" & gt; Can print & gt; & Lt; / A & gt;
But can we open the print-preview page instead of the print option?
windows .print ()
is the only print-related function.
However, if you have defined a dedicated CSS-file for print, you can create a page that imitates print-preview using only the print stylesheet and then it's a popup Or open in a new window.
Comments
Post a Comment