Javascript - execute after all images have loaded
<p>Having read other people's questions I thought </p>

<pre><code>window.onload=...
</code></pre>

<p>would answer my question. I have tried this but it executes the code the instant the page loads (not after the images load).</p>

<p>If it makes any difference the images are coming from a CDN and are not relative.</p>

<p>Anyone know a solution? (I'm not using jQuery)</p>
