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

Home
HTML CSS Reference
1.CSS Attributes and Javascript Style Properties
2.HTML Attributes Reference
3.HTML Tag Reference
HTML CSS Reference » CSS Attributes and Javascript Style Properties » hasLayout 
'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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.