Running code when the page is loaded
<p>I have this link that fills an input when clicked.</p>

<pre><code>&lt;a href="#" onclick="javascript:document.getElementById('input').value='&lt;?php echo("$ms"); ?&gt;'"&gt;
</code></pre>

<p>I was wondering how I would get it to do this automatically onload.</p>
