Jump to content

Print Preview


Lakshmi

Recommended Posts

window.print() will act the same as if the user had clicked the print button in their browser. There isn't, as far as I am aware, any way to display the print preview window that appears as part of the browser.If you use a css file for print:

<link rel="stylesheet" type="text/css" media="print" href="print.css" />

You could then build a second page which uses that stylesheet (with media="all") to render the page and the users would be able to see what the page would look like when it was printed. Margins and paper settings will, however, differ on different browsers.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...