编辑下面的代码:【加编码】
<html> <body> <script> function ChangeBackground() { document.body.style.backgroundColor="lavender"; } </script> <input type="button" onclick="ChangeBackground()" value="Change background color"> </body></html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂