<input type='submit' onclick="document.body.backgroundColor='#ccc'"> 
或者<input type='submit' onclick="document.body.background='#ccc'"> 

解决方案 »

  1.   

    Scripting object.style.backgroundColor [ = sColor ] 
      

  2.   

    <input type='button' value="click" onclick="document.body.style.background='#cccccc'"> 
      

  3.   

    <input type='button' value="click" onclick="document.body.bgColor='#cccccc'"> 
      

  4.   

    <input type='button' value="点击" onclick="document.body.style.background='#cccccc'"> 
      

  5.   

    <input type='button' value="click" onclick="document.body.bgColor='#cccccc'"> 
    正解
      

  6.   

     <input type='submit' onclick="document.body.style.backgroundColor = 'green';" />