Maximize window on initial page load

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrakesh84
    New Member
    • Jul 2007
    • 1

    Maximize window on initial page load

    How can I get the browser window to maximize on initial page load? Just to be clear, I mean specifically the kind of maximize that happens when you press the maximize button on the upper right hand corner of the browser window...not the "as big as possible" in the intermediate state between maximize and minimize (there's a difference of at least 1 pixel in size...)

    Hope that's clear enough.

    Any guidance on this would be appreciated.

    Thanks
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to TSDN!

    I don't know if this is a good idea. Assuming it is and it is expected by the user, you could use the window.resizeTo () method. The width and height could be provided by the availWidth and availHeight properties of the Screen object.

    Comment

    • kovik
      Recognized Expert Top Contributor
      • Jun 2007
      • 1044

      #3
      What you want to do can't be done, but can be emulated as acoder has described.

      Browser developers don't like giving you too much control, but now that resizeTo is a standard, they must keep that much.

      Comment

      • Vinodsrvk
        New Member
        • Jun 2007
        • 18

        #4
        Originally posted by volectricity
        What you want to do can't be done, but can be emulated as acoder has described.

        Browser developers don't like giving you too much control, but now that resizeTo is a standard, they must keep that much.

        Hi,

        Can you try using the code. All you need to do is that, You have to change the parameters of pagename, width & height.

        window.open(Pag eName.aspx' ,"","resizable= no,status=no,to olbar=no,menuba r=no,location=n o,scrollbars=ye s,titlebar=no,w idth=300,height =400,left=0,top =0");

        Comment

        Working...