WindowInfo Op

WindowInfo

size of browser window in pixels


<p>provides information about the current windows (or iframe) width, height and pixel density.</p> <p>orientation info uses: <a href="https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation">https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation</a></p>


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 (

<i>boolean</i>

Number)

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