I
igpig
Sorry if this has been asked before. I've searched the group and the
FAQ and didn't find the answer.
How can I retrieve x, y coordinates of the browser top left corner in
Internet Explorer?
In Firefox screenX/screenY are working as expected.
In IE, from MSDN :
screenLeft Retrieves the x-coordinate of the upper left-hand corner of
the browser's client area, relative to the upper left-hand corner of
the screen.
screenTop Retrieves the y-coordinate of the top corner of the
browser's client area, relative to the top corner of the screen.
So, screenTop will include titlebar height as well. Using that in
window.open will shift the window down.
FAQ and didn't find the answer.
How can I retrieve x, y coordinates of the browser top left corner in
Internet Explorer?
In Firefox screenX/screenY are working as expected.
In IE, from MSDN :
screenLeft Retrieves the x-coordinate of the upper left-hand corner of
the browser's client area, relative to the upper left-hand corner of
the screen.
screenTop Retrieves the y-coordinate of the top corner of the
browser's client area, relative to the top corner of the screen.
So, screenTop will include titlebar height as well. Using that in
window.open will shift the window down.