pop up window positioning
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 posted this at 13:27 — 22nd June 2001.
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
Megan
Connect with us on Facebook!
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.