PP.calculateOffset

Syntax

calculateOffset(node: Object);

Parameters

node. DOM node, for which the user gets the coordinates.

Description

The calculateOffset method calculates coordinates of DOM node in the document.

Comments

This method returns a JSON object with the following fields: X - abscissa, Y - ordinate of the DOM node position in document.

Example

The example of use is given in the with description of the static method PP.addClass.

See also:

PP