Remember that this property only returns the width of the top border! This means the padding top and the margin top are not included.
Note: you could also use the style.borderTopWidth property to get the same value as well.
Element clientTop Property Syntax:
Element clientTop Property Input Value
The clientTop property is read-only and so we can’t use it to assign a value.
Element clientTop Property Return Value
The return value of this property, as mentioned before, is the size of the top border of an element.