Содержание

getElementRect

Gets the rectangle that contains element.

Syntax

getElementRect = function(aElement);

Parameters

Returned value

Notes

Examples

  1. //Loading page google.ru
    loadURI('google.ru');
    //Obtain element (request input field)
    var element = getElement('input',0,['class','id'],['gbqfif','gbqfq'],true);
    //Obtain the coordinates of the element rectangle
    var rect = getElementRect(element);
    log(JSON.stringify(rect));