pop up window positioning

They have: 5,633 posts

Joined: Jan 1970

does anyone know any code for opening up a new pop-up window from an existing pop-up window and positioning it immediately next to the original pop-up window. An example of this would be the graphic equaliser in winamp, whereby wherever winamp is positioned on the screen, the equaliser always opens immediately below it.

thanks

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

I don't think you'll be able to get them exactly tight to each other on both browsers, but you can get close by using the top and left attributes of the window in your pop-up script. So a basic funciton might look like this:

function popup() {
window.open('test.html','new','left=200,top=200,width=200,height=200');
}
'

Jut fiddle around with the left and top values until you get them where you want them

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.