Click to See Complete Forum and Search --> : Pop-up window positions
Nator
Aug 13th, 2001, 11:23 AM
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)?
monte96
Aug 13th, 2001, 01:27 PM
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.
scoutt
Aug 14th, 2001, 10:32 AM
or how they move the close button so far off screen that it annoys the hell out of ya. ya it can be done. :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.