what's the JavaScript code for the find the 's width?
(I want get width .FixedBox
whit javascript no jquery, but my code don't work.)
alert(document.getElementsByClassName('FixedBox').offsetWidth);
<div class="FixedBox">
The HTMLElement.offsetWidth read-only property returns the layout width of an element. Typically, an element's offsetWidth is a measurement which includes the element borders, the element horizontal padding, the element vertical scrollbar (if present, if rendered) and the element CSS width.
</div>
document.getElementsByClassName('FixedBox')[0].offsetWidth