Solved

How can I change the page setup to landscape using Javascript?

Posted on 1998-06-18
3
1,770 Views
Last Modified: 2008-02-01
I need to be able to change the page setup of the web browser window to landscape without the user having to go into Internet Options.  I need to implement this in IE4, IE3, and Netscape 4.  Any ideas?
0
Comment
Question by:saustin44
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 200 total points
ID: 1265851
Yes, from the browser itself: forget it...

Rightly so, I would be rather annoyed if you messed with my printer settings...

If you need the page to be prepared for landscape, make a table with absolute width=height of a letter or A4 but be sure it still will print on a machine with different resolution

Sorry to disappoint you.

Michel
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 1265852
PS: The printer settings are not part of the browsers but part of the printer driver

Michel
0
 

Author Comment

by:saustin44
ID: 1265853
Thanks Michel!  That confirms what I already thought.  I would also be annoyed if someone changed my printer settings from a web page, and I would consider it a security violation.  However, you know users.  :)
I did find somewhere where you could set a "page:landscape" setting in a stylesheet, but it did not work when I tried it.

Thanks again!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question