WindowInfo Op

WindowInfo

size of browser window in pixels


provides information about the current windows (or iframe) width, height and pixel density.

orientation info uses: https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation


Full Name
  • Ops.Html.WindowInfo
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubCompatibilityTest Patches


OUTPUT PORTS


clientWidth (Number)
clientHeight (Number)
body scroll Height (Number)
Device Pixel Ratio (Number)
Iframe Parent (booleanNumber)
Orientation Angle (Number)
Orientation Type (String)

Patches using WindowInfo

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2019-08-26 14:29
featureadded boolean output: patch is opened in an iframe or notuser avatarpandur - 2022-12-14 17:13
featureadd output: absolute scroll-height of bodyuser avatarpandur - 2022-12-14 17:16