dojo._abs
<script src="../../js/dojo.js"></script>
defined in dojo/_base/html.js
Gets the position of the passed element relative to the viewport (if includeScroll==false), or relative to the document root (if includeScroll==true). Returns an object of the form: { x: 100, y: 300 } if includeScroll is passed, the x and y values will include any document offsets that may affect the position relative to the viewport.
parameter | type | description |
---|---|---|
node | DomNode | |
includeScroll | Boolean | Optional. |