"June Moore" <ju******@yahoo.com.au> writes:
Is there a way to use javascript to change a web page's default layout
e.g. change page orientation to landscape or portrait when the user
prints a copy of the webpage?
The user decides whether to print in landscape or portrait mode,
usually in the print dialog, so all you can do is to make the *layout*
of the printed page work better with landscape or portrait mode.
To do that, you use a print stylesheet. It is inserted as:
<link rel="stylesheet" type="text/css" media="print" href="printstyle.css">
For details on how to write the stylesheet, you should ask in a CSS
group, e.g., comp.infosystems.
www.authoring.stylesheets.
There is no need for Javascript for having different layout between
print and screen, CSS does that already.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'