User:Satyam1308mishra/sandbox

= Height of an element using JavaScript = You can easily find the height of the HTML viewport just using a one-liner command, in JavaScript. There are actually many ways to do that, such as using :, if you have connection to jQuery. But, if you don't have the access to jQuery, you can't just use vanilla JavaScript to determine the height of the body such as: No problem, JavaScript has solution to every problem. You van use DOM Element offsetHeight property to get the height of the element or of the viewport.

Let's see an example. Now, its time to see how to gain the height of the viewport using this property:

Full Height: Problem or advantage?
There is a problem with this function as well, which may also act as an advantage for some people. This function gets the actual height of the element with paddings, margins, content area and border widths. Goodbye, for now. Keep coding!