What is the difference between document.documentElement.clientHeight and document.body.clientHeight? Are the return values consistent across all we
document.documentElement.clientHeight
document.body.clientHeight
I figured out the issue! It had to do with my DOCTYPE declaration right before the HTML tag. Without the doctype, the documentElement and body actually switch. Thanks for everyone else's help too :D