'hasLayout' Example : hasLayout : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » hasLayout »

 

'hasLayout' Example



    
<html>
<body>
<div align="left" 
     id="myDiv1" 
     style="width:50%; background-color:red" 
     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>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» hasLayout