window.print() options

wxdqz

New Member
Hi,
i have a small problem with the window.print() in JScript.
I offer my visitors a button, where they can print the HTML page.
It's simple JavaScript:
javascript:window.print()
Now i have 2 Questions:
1. How can i define the print option, means how can i give the window.print() a parameter, which says that the page should be printed in landscape format, not in portrait format. How can i do this?
2. Is there any JS-Code, that can print the page automatically, means: i press my button and the page will be printed out WITHOUT the print box of my browser appears where i have to confirm "print". Is this possible?
Thank you
Andy
 
Back
Top