'hasLayout' Example : hasLayout « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'hasLayout' Example

    
<html>
<body>
<div align="left" 
     id="myDiv1" 
     style="width:50%; background-color:aqua" 
     onMouseOver="alert('hasLayout property value: '+this.currentStyle.hasLayout)">
     div segment
</div>
<br>
<div align="left" 
     id="myDiv2" 
     style="background-color:aqua" 
     onMouseOver="alert('hasLayout property value: '+this.currentStyle.hasLayout)">
     div element has no layout or positioning set.
</div>
</body>
</html>

    
      
      








Related examples in the same category

1.'hasLayout' Syntax and Note
2.'hasLayout' Possible Values
3.'hasLayout' is applied to