Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to change the resolution of screen using JavaScript

Posted on 2013-02-03
6
Medium Priority
?
320 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 750 total points
ID: 38849604
you can't
javascript can only work with browser html pages
0
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 375 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 111

Expert Comment

by:Ray Paseur
ID: 38849662
I am moved to ask, "Why?"  What is the business reason for wanting to do this?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 375 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

618 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