PDA

View Full Version : Can u position a pop-up window right at the center of a page?


dharma
11-18-2002, 09:39 AM
All i have seen is that u can define the pixels at the top and the left of the page! but how can u position the new pop-up window right at the center of the page?

giz
11-18-2002, 03:53 PM
You'll need to sniff the screen resolution and/or main window sizes, divide by two, then take off half the height and width of the new window to be opened, then place the new window starting at those coordinates. I've see the code for some of this on this forum, somewhere, in the last month or so.

Option1
11-19-2002, 12:45 AM
See:

* http://developer.irt.org/script/1316.htm OR

* http://www.help4web.net/webmaster/window.html OR

* http://www.htmlhelpcentral.com/js_popup_centered.html

Neil

dharma
11-20-2002, 03:55 AM
THANKS FOR UR HELP!!!