FantaJ <vi*********@gmail.com> wrote:
I'm using window.open to open a pop-up and I'm aware of the top and
left parameters. Is there any way of opening a pop-up completely right
justified/aligned?
Try the following:
function popup( width, height, url ) {
var left=screen.width-width;
var top=screen.height-height;
var pWin=open( url, 'win', 'width='+width+',height='+height+',left='+left+',t op='+top );
if( pWin.screenX != null ) {
pWin.screenX=left;
pWin.screenY=top;
}
}
You will end up with a window that is at least approximately in the
lower right corner of the screen, with variations depending on the
exact browser used. This may or may not be acceptable for your
purposes; it's something to work from. Notice, in any case, that it
works reasonably in Firefox and IE.
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.