GetHtmlRect Method (BrowserWindow)

Action

Retrieves the rectangle of the BrowserWindow in HTML pixels. The click function also uses HTML pixel coordinates for all DomElements. We recommend to use GetHtmlRect for all position calculations within the browser. This will ensure that your scripts are cross-browser capable and your position calculations are not affected by changing zoom levels on mobile browsers.

Syntax

htmlRect = browserWindow.GetHtmlRect()
Variable Description
htmlRect Rectangle.