Home >Topic List >offsetwidth

offsetwidth

offsetWidth is a DOM property that returns the visible width of an element, including the element's border, padding, and vertical scrollbar (if present). In other words, offsetWidth calculates the entire width of the element, including the width of the border, padding, and vertical scrollbar. Please note that offsetWidth is a read-only property and cannot be modified.