title: clear input textbox value on load
body: <p>I have the following form which is getting pre populated with values on load. I want to have empty input boxes on load using Javascript. However I do not have access to the <code>&lt;body&gt;</code> tag so <code>&lt;body onload=""</code> will not work here. Is there any other way to clear the form fields on load?</p>
  
  <pre><code>&lt;form method="POST" action=""&gt;
    &lt;input name="username" id="user" value="" /&gt;&lt;br /&gt;
    &lt;input name="pwd" id="pass" value="" /&gt;
    &lt;input type="submit" value="Go" /&gt;
  &lt;/form&gt;
  </code></pre>