Results 1 to 3 of 3

Thread: Pop-up window positions

  1. #1

    Thread Starter
    Lively Member Nator's Avatar
    Join Date
    Nov 1999
    Location
    East Larryville, GA
    Posts
    80

    Pop-up window positions

    Is there a way to create a pop-up window and snap it to a particular coordinate on the screen (such as centering it like a splash screen)?

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You can use the methods of the window object:

    for example, if you put this into a script that is called when the page is loaded (like body_onLoad):

    intHeight = screen.availHeight
    intWidth = screen.availWidth
    window.resizeTo intWidth, intHeight
    window.moveTo 0, 0


    This resizes the new window to the full screen and moves it to the upper corner.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    scoutt
    Guest
    or how they move the close button so far off screen that it annoys the hell out of ya. ya it can be done.

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