Solved

How to change the resolution of screen using JavaScript

Posted on 2013-02-03
6
308 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
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 108

Expert Comment

by:Ray Paseur
ID: 38849662
I am moved to ask, "Why?"  What is the business reason for wanting to do this?
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

762 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

18 Experts available now in Live!

Get 1:1 Help Now