This example uses the hasLayout property of the currentStyle object to show that an element has layout when it is absolutely positioned, or when its height and/or width are specified. The hasLayout property returns true for an object that has layout, and false for an object that has no layout.
[Right-click in window to view the full source code.]