[Javascript] How to modify the browsers page setup parameters like orientation and margins?

Cutter (JavaScript) javascript at theblades-family.com
Fri Jan 17 00:48:14 CST 2003


You don't want "IE DHTML." What you want to look for (on the MSDN site) 
is the JScript reference. It is very similar in javascript syntax, but 
gives added functions for manipulating the browser. The settings you're 
after may be "read only," the documentation will clarify.

Cutter

Klinger, Edwin wrote:

>Hello,
>
>I'm looking for a way in JavaScript to be able to set the 
>browsers "Page Setup" properties. I'm specifically talking about IE 
>5+.
>
>I would like to be able to set the page orientation and margins. This 
>is needed for printing purposes and not for displaying the page in 
>the browser.
>
>I have a wide table that is about 900 in width that I need to print in
>landscape and adjust the browsers margins to fit this table on the 
>paper. I will be opening a new window for printing this table using 
>the window.open()method.
>
>I would like to set these properties myself and not have the user 
>fiddle with them. Is this possible? Any other suggestions if not?
>
>Thanks for any help,
>
>Ed Klinger
>
>
>
>
>Confidentiality Note:  This e-mail, and any attachment to it, contains
>privileged and confidential information intended only for the use of the
>individual(s) or entity named on the e-mail.  If the reader of this e-mail
>is not the intended recipient, or the employee or agent responsible for
>delivering it to the intended recipient, you are hereby notified that
>reading this e-mail is strictly prohibited.  If you have received this
>e-mail in error, please immediately return it to the sender and delete it
>from your system.
>
>This e-mail and any attachment(s) are believed to be free from virus.
>However it is the responsibility of the recipient to ensure that they are
>virus free.  We do not accept any liability for any loss or damage arising
>in any way from the receipt, opening or use of this e-mail and any
>attachment(s). Thank You. 
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>





More information about the Javascript mailing list