I'm just adding more details to my above post:
The following popup window is not appearing at the correct location if I pass the values through a function with parameters such as w(for width), h(for height),l(for left),t(top),sX(screenX),sY(screenY). I don't know why? can someone please help?
However, it is displaying at the correct location if I hard code it with figures.
By the way, function popupwin_fn is located in an external javascript file: signin_check.js.
function popupwin_fn(the_link,page,w,h,l,t,sX,sY)
{
/*screenX=pixels from the left for Netscape 4+
screenY=pixels from the top for Netscape 4+
left=pixels from the left for internet explorer 4+
top=pixels from the top for internet explorer 4+*/
document.write(the_link,page,w);
[COLOR="Red"]the_link.onclick=
win1=window.open(page,'mywin','location=no, width=w, height=h, left=l, top=t, screenX=sX, screenY=sY');[/COLOR]
/*the_link.onclick=
win1=window.open(page,'mywin','location=no, width=350, height=200, left=500, top=200, screenX=500, screenY=200');
*/
popupwin_flag=true;
}
thank you.