Solved

How to change the resolution of screen using JavaScript

Posted on 2013-02-03
6
313 Views
Last Modified: 2013-02-04
I want to change the resolution of window screen using JavaScript. to 800 x 600
There should me a button , on clicking of that button the resolution should get changed.
0
Comment
Question by:mahmuod
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 250 total points
ID: 38849604
you can't
javascript can only work with browser html pages
0
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 125 total points
ID: 38849658
In the clientside javascript you use:

window.innerWidth=800;
window.innerHeight=600;

You can generate the javascript server side if you want, but you cannot change anything in the browser from the server side.  If you just want fixed values like 800x600 just include the javascript in your pages.

Cd&
0
 
LVL 110

Expert Comment

by:Asked Anonymously
ID: 38849662
I am moved to ask, "Why?"  What is the business reason for wanting to do this?
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 35

Expert Comment

by:Ernie Beek
ID: 38850186
I removed routers from your topics and replaced it with 'java'. Routers didn't really seem relevant ;)
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 125 total points
ID: 38850263
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 38850369
@CEHJ: Point taken (had my learning moment for the day :)
Any suggestion on what I could add? Still think routers isn't quite relevant.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

740 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