Get the App
SLTechnology News&Howtos  ›  Development  › 

How to get the visible height of the page by JavaScript

Shulou Source: shulou.com Published: 2022-06-01 02:56:34 11月27日 Update

Editor to share with you JavaScript how to get the visual height of the page, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Get the visible height of the page function getPageViewHeight () {

Var d = document

A = d.compatMode = = "BackCompat"? D.body: d.documentElement

Return a.clientHeight

What is JavaScript JS is the abbreviation of JavaScript, it is a literal scripting language, its interpreter is called JavaScript engine, is a part of the browser, mainly used for web development, can add a variety of dynamic effects to the website, make the page more beautiful.

The above is all the content of the article "how to get the visual height of the page by JavaScript". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Page height article content beauty not much dynamic various most engine effect more browser literal translation knowledge website web page script industry interpreter Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn macOS Huawei Linux MySQL