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


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » runtimeStyle »

 

'runtimeStyle' Example



    
<html>
<body>
<div id="myDiv" style="width:100; height:100;"></div>
<button onclick="myDiv.runtimeStyle.backgroundColor = 'blue';">Change div color</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
» runtimeStyle