Can I change page layout when using window.print()?
javascript
Solution
You should use a print stylesheet.
<link rel="stylesheet" href="print.css" type="text/css" media="print" />
More info...
How to print only parts of a page?
Edit: to coerce landscape orientation, apparently the standard is `size: landscape`, but I have no idea how well that's supported across browsers.
Problem
In our application we enable users to print pages. We do this by supplying a button which when click calls the window.print() function. Some of the pages would look better if they were printed in landscape mode rather than portrait. Is there a way to control the page layout from JavaScript? Update: Following the advice given here I looked for "css landscape" in google, and found the following article that showed ways of css-ly defining landscape: