View Full Version : How to make a new window open at the center of the screen


Pansy
07-01-2004, 11:56 PM
I'm trying to make a popup window while click on a text link using the code posted on page - http://www.lissaexplains.com/javascript4.shtml

but I need to know how to make the popup window locate at the center or locate at top/left-hand-side of the screen.

dolce shanti
07-02-2004, 12:27 AM
Try this generator:

http://javascript.internet.com/generators/popup-window.html

Pansy
07-02-2004, 05:56 PM
I have use this generator to make a popup window as I need but I also found 2 un-expected advertise popup.

Any other suggestions ?

I need to make several Text Link to open difference new window

Fire Pheonix
07-06-2004, 06:26 AM
check that thing again it has it all there

MaGiCSuN
07-06-2004, 12:40 PM
the generator only positions the pop-up window to your resolution. In other resolutions the pop-up will not be centered though :)

here's a script:

http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=2634&lngWId=2

Love,
Mirna

Pansy
07-07-2004, 05:18 AM
Both generator works well although I still found advertise popup, I think because I have included some other script (fireworks). I have no problem while link to a normal page.

Thanks for help from all of you.

Lîm_Gravecryer
07-07-2004, 04:43 PM
i know what u mean, but its not the generators that make the pop-ups, its probably spy-ware... goto www.lavasoft.com and download ad-aware and it will probably find lots of programs, have ad-aware delete em all