hasLayout property (currentStyle)
Returns a Boolean value that indicates whether the object has layout or not.
Sometimes you need to know whether an element has layout or not, because some style properties only have effect on elements that have layout. An element has layout if any of the following style definitions is set:
You can find the related objects in the Supported by objects section below.
This property is read-only.
Boolean that indicates whether the object has layout.
One of the following values:
|Element does not have layout.|
|Element has layout.|
Example HTML code 1:
This example illustrates the use of the hasLayout property:
Did you find this example helpful?
User Contributed Comments