<html> <body> <div id="myDiv" style="width:100; height:100;"></div> <button onclick="myDiv.runtimeStyle.backgroundColor = 'blue';">Change div color</button> </body> </html>