title: How to change the background color of form input when page loads?
body: <p>(I know I can do it directly with input style, but I have other intentions)</p>
  
  <p>I tried several ways</p>
  
  <pre><code>&lt;script&gt; document.getElementById('myTextBox').style.backgroundColor = 'red'; &lt;/script&gt;
  &lt;script&gt; document.form1.myTextBox.style.backgroundColor = 'red'; &lt;/script&gt;
  </code></pre>
  
  <p>I tried putting it on head, on body. I don't know what else to do</p>