i would like to know how to get the height of a element including padding and borders using javascript so ill know the actually height the element has when rendered in a browser.
Can anyone help me please and im still new to javascript
i would like to know how to get the height of a element including
Share
You’re looking for
element.offsetHeightandelement.offsetWidth.According to quirksmode.com, these properties work in all of the major browsers. Hooray!