'currentStyle' Example : currentStyle : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » currentStyle »

 

'currentStyle' Example



    
<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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Javascript Objects
» currentStyle