title: Screen Coordinates of a element, via Javascript
body: <p>I'm trying to get the screen coordinates (that is, relative to the top left corner of the screen) of an element in a browser window. It's easy to get the size and position of the window (screenX, screenY) and it's easy (with jQuery) to get the offset of the element ($('element').offset().left).</p>
  
  <p>However, I need to know how many pixels it is from the element all the way to the corner of the screen. I've found some things that appear to be specific to IE, but I'd like this to work in as many browsers as possible.</p>
  
  <p>Edited to add a picture:
  <a href="https://i.stack.imgur.com/BuvvI.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/BuvvI.jpg" alt="alt text"></a>
  </p>