Wait for page to finish loading & then random wait to show DIV
<p>I would like to show my users popup like newsletter signup form. I want to use Javascript to wait for page finished loading and while they read after random wait (Minimum 10 seconds!) to show the div. And another small improvement if it's possible? (Only if it's not too hard to add a onmouseclick to hide div?)</p>

<p>Thanks a lot</p>

<p>Update got it to work to wait and load after 10 seconds. Need to add random wait</p>

<pre><code>&lt;body onLoad='setTimeout("showIt()", 10000);'&gt;
    &lt;body onLoad='setTimeout("showIt()", 10000);'&gt;

    &lt;script type="text/javascript"&gt;
        function showIt() {
          document.getElementById("myDiv").style.display = "block";
        }
    // 1000 = 1 sec | 60000 is 1 minute
        &lt;/script&gt;
</code></pre>
