|
-
Aug 13th, 2001, 11:23 AM
#1
Thread Starter
Lively Member
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)?
-
Aug 13th, 2001, 01:27 PM
#2
Frenzied Member
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..
-
Aug 14th, 2001, 10:32 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|