'runtimeStyle' Example : runtimeStyle « Javascript Objects « JavaScript DHTML
- JavaScript DHTML
- 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>
Related examples in the same category