Maximizing a window PLEASE READ!!

Results 1 to 2 of 2

Thread: Maximizing a window PLEASE READ!!

  1. #1
    Tom Levesque Guest

    Default Maximizing a window PLEASE READ!!

    All right. Let&#039;s say I want to maximize the current window. I tried:<BR><BR>self.maximize();<BR><BR>That doesn&#039;t work. :)<BR><BR>What does work is:<BR><BR>self.moveTo(0,0);<BR><BR>But the window is still off-center a bit and the little windows GUI thing that looks like one window when you can maximize and two windows cascading when you are already maximized... well, it looks like one big window still.<BR><BR>Not only that, self.moveTo(0,0) only moves the upper left end of the window to the edge of the screen. If the window isn&#039;t the right dimensions, it doesn&#039;t fill the screen anyway.<BR><BR>I&#039;m wondering if there&#039;s a javascript function that can invoke the current browser window to truly maximize itself. Any ideas?

  2. #2
    Join Date
    Dec 1969

    Default RE: Maximizing a window PLEASE READ!!

    &nbsp;<BR>Try this:<BR><BR>window.moveTo(0, 0);<BR>window.resizeTo(screen.availWidth, screen.availHeight);<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts