Click here to Skip to main content
15,896,912 members
Articles / Web Development / XHTML

Absolute Position of a DOM Element

Rate me:
Please Sign up or sign in to vote.
5.00/5 (20 votes)
22 Apr 2011CPOL2 min read 124.5K   698   45  
A JavaScript function to get the absolute coordinates of a DOM element within a document

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Korzh.com
Ukraine Ukraine
Software developer and entrepreneur.

Main projects:
* EasyQuery - ad-hoc data filtering UI for .NET applications;
* Localizer - localization tool kit for Delphi projects;

Comments and Discussions