jquery action on loading page
<p>I'm using a script which activates a light-box (popup). the popup decides whether the shopping basket has been filled correctly if it has then i wish it to close onload if not then the user has to click to acknowledged that something is wrong. I've got the click to close script working how could i use this script to close the pop without any action ie. onload or something can you help?</p>

<p>this is what i use to close the window on click</p>

<pre><code>&lt;a href='javascript:closePopup(300);'&gt;close window&lt;/a&gt;
</code></pre>

<p>would it be possible to add this to close pop with our action?</p>

<pre><code>&lt;body onLoad(closePopup(300))&gt;
</code></pre>
