up.viewport.get(target)
JavaScript function
Returns the scrolling container for the given element.
Returns the document's scrolling element if no closer viewport exists.
Parameters
Return value
Type: Element
JavaScript function
Returns the scrolling container for the given element.
Returns the document's scrolling element if no closer viewport exists.
Tip Your coding agent can search these docs locally with the Unpoly agent skill