getBoundingRect( )

Returns information about the window.

The getBoundingRect() function returns a Promise that resolves to an object containing information about the current window's size, the document's size, and the current scroll position.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<WindowSizeInfo>
Was this helpful?
Yes
No