Solved

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

Posted on 1998-06-18
3
1,767 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now