Results 1 to 9 of 9

Thread: Auto Maximize?

  1. #1

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428

    Question Auto Maximize?

    How can I make a window maximize itself after I load it (new window) from a link?

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    put in the page that is being loaded:

    Code:
    <script language="Javascript">
    window.moveTo(0,0)
    window.resizeTo(screen.width,screen.height)
    </script>

  3. #3
    Addicted Member
    Join Date
    Oct 2006
    Location
    Chennai, India
    Posts
    198

    Re: Auto Maximize?

    I have tried using the code but the problem when I click the Maximize button of the window it still maxmize to some extend and also the Maximize symbol is also changed (The symbol that would appear when the Window page is in Maximized mode).

    Is there any other thing i want to set to the current window? Is there a way to set the Current window in Maximized mode in Javascript?
    Regards
    Srinivasan Baskaran
    India

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Auto Maximize?

    The code shown above is how it's usually done. Are you saying it's going large but not large enough? Explain with screenshots if you must.

    Also, someone's going to point this out to you at some point, so I'll take the bait - having client script "do things" to the end user's window is rather annoying and you should have a really good reason for wanting to do this. I can't think of a reason for wanting to do this.

  5. #5
    Addicted Member
    Join Date
    Oct 2006
    Location
    Chennai, India
    Posts
    198

    Re: Auto Maximize?

    I have used the Javascript Code,

    Code:
    window.moveTo(0, 0);
    window.resizeTo(screen.Width,screen.Height);
    in a routine PageSize and called this in Onload event of the Body.

    On Executing the page shows like this in the Attachment "screenshot1.gif"

    Also when I click on the middle Icon, the page maximize stills and the icon changes to double window as shown in the Attachment "screenshot2.gif".

    Is my problem is valid? Is there any other thing I need to handle in the code??? Kindly comment...
    Attached Images Attached Images   
    Regards
    Srinivasan Baskaran
    India

  6. #6
    Addicted Member
    Join Date
    Oct 2006
    Location
    Chennai, India
    Posts
    198

    Re: Auto Maximize?

    Is there any other option i have missed above???
    Regards
    Srinivasan Baskaran
    India

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Auto Maximize?

    Is that a problem? When a window is maximized, it's supposed to have that "double window" icon in the middle there.

    If you're wondering why it doesn't happen the first time, it's because the window isn't being maximized by the javascript code, it's being resized. You can resize a window to any size you want, even larger than the screen width and height.

  8. #8
    Addicted Member
    Join Date
    Oct 2006
    Location
    Chennai, India
    Posts
    198

    Re: Auto Maximize?

    Thanks da_silvy and mendhak.
    Regards
    Srinivasan Baskaran
    India

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Auto Maximize?

    No problem, add [Resolved] and post back if you have more questions.

Posting Permissions

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



Click Here to Expand Forum to Full Width