Published
- 1 min read
javascript get body height
The solution for this is noted below
javascript get body height
Solution
var body = document.body,
html = document.documentElement
var height = Math.max(
body.scrollHeight,
body.offsetHeight,
html.clientHeight,
html.scrollHeight,
html.offsetHeight
)
Try other methods by searching on the site. That is if this doesn’t work