• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

How to change the resolution of screen using JavaScript

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
mahmuod
Asked:
mahmuod
3 Solutions
 
leakim971PluritechnicianCommented:
you can't
javascript can only work with browser html pages
0
 
COBOLdinosaurCommented:
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
 
Ray PaseurCommented:
I am moved to ask, "Why?"  What is the business reason for wanting to do this?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Ernie BeekExpertCommented:
I removed routers from your topics and replaced it with 'java'. Routers didn't really seem relevant ;)
0
 
Ernie BeekExpertCommented:
@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

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now