Javascript getScreenPosition

Following this : Javascript getDocumentFromElement

This is an universal way to get to current position of your screen. It will help for any browser except IE to get the current relative mouse position. This is usefull to use the method ‘document.elementFromPoint’.

Enjoy

Celogeek

Short URL: http://sck.pm/jd