bjnst6
September 24th, 2002, 11:37 PM
i'm trying to open up a new window and move it to a certain place relative to the opener window.
this code:
function openNew(page)
{
var win;
win = window.open(page, "smallWindow", "height=400, width=650, menubar=no, toolbar=no, status=no, scrollbars=no");
win.moveTo(450,400);
}
works great, except that it opens the window and THEN moves it...which kind of looks crappy. i want to be able to set the window to the new position before it is open so it looks smoother.
are there any values i can set in the window.open() third parameter to do this (devEdge lists a screenX and screenY but i can't get those to work)? any other ideas if not?
thanks
b
this code:
function openNew(page)
{
var win;
win = window.open(page, "smallWindow", "height=400, width=650, menubar=no, toolbar=no, status=no, scrollbars=no");
win.moveTo(450,400);
}
works great, except that it opens the window and THEN moves it...which kind of looks crappy. i want to be able to set the window to the new position before it is open so it looks smoother.
are there any values i can set in the window.open() third parameter to do this (devEdge lists a screenX and screenY but i can't get those to work)? any other ideas if not?
thanks
b