Forum Moderators: phranque

Message Too Old, No Replies

home page window has incorrect size

The new window inherits incorrect size from home page

         

bmatth1

6:01 pm on Aug 30, 2003 (gmt 0)

10+ Year Member



When a new window opens from my home page, it is supposed to inherit the same qualities (size) of the home page. However, it seems like my home page has the incorrect size. WHen it opens, it is about 500 x 500, and the new window inherits this size. Is there a way to ensure that my home page will open maximized?
Thank you,
God Bless,
Bob

keyplyr

6:04 pm on Aug 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello and welcome bmatth1,

My guess would be it's your browser controlling the size of the window and not an issue with your webpage mark-up.

Try using the browser cursor to "pull" the outer edge of the window to the desired size. It should stay after that.

bmatth1

6:40 pm on Aug 30, 2003 (gmt 0)

10+ Year Member



Thank you for your help. I tried this, and it did not work. I have developed my pages using Dreamweaver. It seems like my home page has inherited, from somewhere, a page size of about 500x450. This is passed to the new window (window.open) that inherits the page size from this home page. When I mually resize the home page, it stays at that size, but the new window still has the previously inherited size of 500x450. This only started occurring when I moved my database into the same directory as the home page, and used the asp server.mappath. I don't see how this could affect it. Any other suggestions would be very helpful and appreciated.
God Bless,
Bob

RonPK

6:58 pm on Aug 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



IF you're opening the new window by using window.open(), are you explicitly setting the width and height? Otherwise, the browser just defaults to some previously used size.

Example:

window.open("your_file.html", "some_window_name", "width=780,height=570")

>> God bless

Yeah right.

bmatth1

7:03 pm on Aug 30, 2003 (gmt 0)

10+ Year Member



I am not specifying a size on the new window. I am hoping it will inherit the same size as my home page, that opens the new window. This seems to work, but my home page is opening up with the incorrect size - about 500x450. Is there a reason why my home page would be doing this?
Thank for you sticking with this.
God Bless,
Bob

RonPK

7:16 pm on Aug 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Unless you explicitly specify the width and height of the new window, it will default to some previously used size (unrelated to the size of the opening window). The only way to explicitly specify the width and height, is by using the JavaScript function window.open(file, name, parameters).

>> but my home page is opening up with the incorrect size - about 500x450.

I don't get it. How are you opening your home page?

>> God bless
Yeah right.

bmatth1

8:40 pm on Aug 30, 2003 (gmt 0)

10+ Year Member



Here is the answer. Thank you for your help:

Start IE, right click any link on a web page, and select Open in a New Window.
Go back to the first IE window you opened and close it.
Return to the second window and manually drag it to fill the screen.
(Do not use the maximize button, for that's a temporary setting that will not be retained.)

Now press the Ctrl button, and close this second window, holding the Ctrl button depressed, using 'close' in the File menu (important!).
All windows should now open maximized.

This worked!

httpwebwitch

7:39 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



this thread made no sense to me at all.

If you want a window maximized, maximize it. If you don't, then use the handy resizing handles.

If you want a new browser window to open at a particular size, don't use <...target='_blank'> . Instead, specify the size with the window.open method.

Am I missing something?

God bless,
httpwebwitch.