Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get body height

var body = document.body,
    html = document.documentElement;

var height = Math.max( body.scrollHeight, body.offsetHeight, 
                       html.clientHeight, html.scrollHeight, html.offsetHeight );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #body #height
ADD COMMENT
Topic
Name
8+3 =