I need to get the position of an element relative to the whole screen and show something there with an external application. Either in an html page or Chrome extensions.
One way to get it done is to get browser inner Y relative to the screen. We already have window.screenY
which points out to the top of the browser's window. We also have window.innerHeight
and window.outerHeight
. However, one important thing is missing, that is, window.innerScreenY
. I checked Mozilla Firefox and it provides this value using window.mozInnerScreenY
but I'm not sure which version supports and whether or not other browsers support that.
So is there a way to do that?