How to close the shadowbox
<p>I have a shadow box, and it contains a form , the problem is when the form is submitted shadow box doesn't get closed.I've used these functions , 
self.close();
window.parent.Shadowbox.close();</p>

<p>but still no luck, can any one help me, thanks</p>

<p>This is how I created the shadow box</p>

<pre><code>&lt;a href="#" id="mylink"&gt;Example shaodow box&lt;/a&gt;

&lt;script language="javascript"&gt;

    $('#mylink').click(function(){

        Shadowbox.open({

            content:    'mybox.php',
            player:     'iframe',
            height:     550,
            width:      800,

            options: {

                onClose: function() {
                    top.location = "index.php?mydata=asas1234";                 
                }

            }

        });
    });

&lt;/script&gt;
</code></pre>
