====== getElementRect ====== Gets the rectangle that contains element. ===== Syntax ===== getElementRect = function(aElement); ==== Parameters ==== * **//aElement//** * //functions:// element, which rectangle is necessary to get ==== Returned value ==== * //functions:// rectangle which contains an element ===== Notes ===== * Rectangle coordinates are counted with respect to the upper-right corner of the browser window ===== Examples ===== -//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)); {{:ru:wascript:ecma:methods:20.png}}