is used across the world by programmers to create rich and dynamic web pages. There are various in-built methods available that enable programmers to customize their web pages
independent of the type of browser in use. Two such methods are offsetHeight and pixelHeight
which are used to determine the height of an HTML
elements are fundamental blocks of any type of web page. Once the programmer can determine the height of these elements in a dynamic way; the result is a web page that adjusts itself automatically
irrespective of any type of web browser that the user chooses.
The following code implements the above methods, allowing you to determine the height of a block HTML regardless of the browser used:
var obj = document.getElementById('id_element');