Forum Moderators: open

Message Too Old, No Replies

closing a window... not easy

not your average window-close. please help!

         

cowman345

8:23 am on Mar 11, 2002 (gmt 0)



Can someone please help me?

my full-screen page has two frames. I want to be able to close or shrink the window to normal (non-full-screen) via a link within one of the frames.

is this possible?

-dave-

tedster

9:51 am on Mar 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums, cowman.

I assume that you are opening the original frameset window with javascript, and that's how you know that it is "full screen". Correct?

If so, then the window isn't truly maximized but rather defined as the exact height and width of the screen. You can acess the parent window from a link within the frames by using (amazingly enough) the parent property.

onClick="parent.resizeTo(w,h);"
-or-
onClick="parent.resizeBy(w,h);"

There's no way I know of to mess with location or size of a maximized window -- or to truly maximize a window for that matter.