'runtimeStyle' Example : runtimeStyle « Javascript Objects « JavaScript DHTML






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








Related examples in the same category

close