Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


how to set height and width of a webpage without using popuplink

Posted on 2003-03-19
Medium Priority
Last Modified: 2010-04-09
please tell me how i can (if it is possible) set height and width of a webpage without using it as a popup with a link from another page. What i want is an offline page that when I open it should open with the height and width i have set. Perhaps in javascript? need of help now ! :P
Question by:needofhelpnow
LVL 15

Accepted Solution

JakobA earned 225 total points
ID: 8170265
   window.resizeTo( 800, 600 );
changes the size of the window to 800*600

Incidentally that is totally useless information. You may have your ideas about what size browserwindow your page should be shown in. but the browser belong to the person looking ay your page. all you accomplish by changing the size he has set his browser to is to irritate him so he goes somewhere else. Instead you should make yor page so it adjust to the size of window it is given.

best JakobA
LVL 53

Expert Comment

ID: 8170428
I agree with JakobA.  You want to be careful about overriding user preferences; it can create difficulties for users who need specific settings because of visual disabilities.


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

580 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