How to display in js the width of the block?

document.element.style.width - specify the width.
And as to its value in px?
ie is the block we want in js to know what he lengths.
July 2nd 19 at 18:24
1 answer
July 2nd 19 at 18:26
Solution
document.getElementById('#IDNAME').clientWidth

Find more questions by tags JavaScript