• Skip to main content
  • Skip to search
  • Skip to select language
MDN Logo
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. VisualViewport
  4. VisualViewport.height

Table of contents

  • Value
  • Specifications
  • Browser compatibility

VisualViewport.height

The height read-only property of the VisualViewport interface returns the height of the visual viewport, in CSS pixels.

Value

A double.

Specifications

Specification
Visual Viewport API
# dom-visualviewport-height

Browser compatibility

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Mar 25, 2022, by MDN contributors

Related Topics

  1. Visual Viewport API
  2. VisualViewport
  3. Properties
    1. height
    2. offsetleft
    3. offsetTop
    4. pageLeft
    5. pageTop
    6. scale
    7. width
  4. Inheritance:
    1. EventTarget
  5. Related pages for Visual Viewport
    1. Window.visualViewport
MDN Logo
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2025 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies