Solved

How to change the resolution of screen using JavaScript

Posted on 2013-02-03
6
315 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:Ray Paseur
ID: 38849662
I am moved to ask, "Why?"  What is the business reason for wanting to do this?
0
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
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 …

691 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