브라우저 페이지 상의 컨트롤 위치값들(left,top,right,bottom)을 배열으로 반환하는 API이다.
Type | Description |
---|---|
Array | 브라우저 페이지 상의 컨트롤 위치값들을 담은 배열 |
* left, top, right, bottom 순으로 가져온다.
function btn_WindowPosition_on mouseup()
{
var arrPos = btnTest.getwindowrect();
screen.alert("왼쪽 : " + arrPos[0] + ", 위 : " + arrPos[1] + ", 오른쪽 : " + arrPos[2] + ", 아래 : " + arrPos[3]);
}