This example shows the difference between the dimension retrieved by the clientWidth and the dimension retrieved by the offsetWidth, the latter including the width of scrollbars.





[right-click anywhere in window to view the source code]




[Right-click and choose View Source from the shortcut menu.]

© 2007 Microsoft Corporation. All rights reserved. Terms of use.