'currentStyle' Example : currentStyle : Javascript Objects : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP


JavaScript DHTML  »  Javascript Objects   » [  currentStyle  ]   
 



'currentStyle' Example

Please note that some example is only working under IE or Firefox.

    
<html>
<head>
<style>
td {background-color:red; 
    font-family:verdana; 
    font-size:12pt; 
    font-weight:bold; 
    color:white; width:100%
}
</style>
</head>
<body>
<table>
    <tr>
        <td width="1100" id="myCell">content</td>
    </tr>
</table>
<button onclick="alert(myCell.currentStyle.width);">Width of the table</button>
</body>
</html>

    
      
      
Related examples in the same category
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.