Javascript on page load?
<p>this is my code:</p>

<pre><code>var myarray=[(lots of things)];
var elem=document.getElementById('subtitle');
window.setInterval(function(){
    elem.innerHTML=myarray[Math.round((myarray.length-1)*Math.random())];
},30000);
</code></pre>

<p>This works fine, except for the first 30 seconds, nothing happens. I have to wait until it reruns for anything to happen. Can I make it choose one from <code>myarray</code> on page load? Thanks</p>
