DTD has been declared
IE
document.documentElement.scrollHeight All content height of the browser, document.body.scrollHeight All content height of the browser
document.documentElement.scrollTop The browser scrolls part height, document.body.scrollTop is always 0
document.documentElement.clientHeight The browser's visible part height, document.body.clientHeight The browser's content height
FF
document.documentElement.scrollHeight All content height of the browser, document.body.scrollHeight All content height of the browser
document.documentElement.scrollTop The browser scrolls part height, document.body.scrollTop is always 0
document.documentElement.clientHeight The browser's visible part height, document.body.clientHeight The browser's content height
Chrome
document.documentElement.scrollHeight All content height of the browser, document.body.scrollHeight All content height of the browser
document.documentElement.scrollTop is always 0, document.body.scrollTop browser scrolling part height
document.documentElement.clientHeight The browser's visible part height, document.body.clientHeight The browser's content height
DTD Not Declared
IE
document.documentElement.scrollHeight The height of the browser's visible part, document.body.scrollHeight The height of all content of the browser
document.documentElement.scrollTop is always 0, document.body.scrollTop browser scrolling part height
document.documentElement.clientHeight is always 0, document.body.clientHeight The browser's visible part height
FF
document.documentElement.scrollHeight The height of the browser's visible part, document.body.scrollHeight The height of all content of the browser
document.documentElement.scrollTop is always 0, document.body.scrollTop browser scrolling part height
document.documentElement.clientHeight The height of all content of the browser, document.body.clientHeight The height of the browser's visible part
Chrome
document.documentElement.scrollHeight The height of the browser's visible part, document.body.scrollHeight The height of all content of the browser
document.documentElement.scrollTop is always 0, document.body.scrollTop browser scrolling part height
document.documentElement.clientHeight The height of all content of the browser, document.body.clientHeight The height of the browser's visible part
The height of all content of the browser is the height of the entire browser framework, including the sum of the height of the scroll bar rolling part + the visual part + the hidden part at the bottom
The height of the browser scrolls part is that of the scroll bar rolls out part of the height to see the height of the top of the entire object.
DTD statement refers to the statement when the browser page is loaded: <!DOCTYPE html public ""....>
Declare document type html