Click to See Complete Forum and Search --> : Please help - js window positioning


Gladhand
12-23-2003, 11:04 AM
Hello all,

I'm sorry to bother y'all with what is probably a trivial matter, but my js skills are naught, and I haven't been able to find a solution by searching this site.

I'm looking for a simple javascript that will open a new window at a set size, and at a set position in relation to the parent window. I need this to work with as many browsers & platforms as possible.

example:
I have a window with a text link. When the link is clicked, I want a new window to open (let's say sized to 500px square), but have its position be 20px below the top edge and 100px to the right of the left edge of the parent window. The hope is to not have the newly opened window obscure the left nav of the parent window beneath it.

I'm sure this is possible, but I haven't a clue where to begin finding a solution. As I said, my understanding of JS is extremely limited.

Any help in this area would be greatly appreciated. Thanks in advance to anyone who takes the time to lend me a hand.

Have a great Holiday!!

-GH

Khalid Ali
12-23-2003, 05:42 PM
I hope this will help (http://www.webapplikations.com/pages/html_js/window/OpenCentralizedPopupWindow.html)