Closing colorbox after submit I'm using colorbox module to load the login form, but after submit the form the page reloaded inside the "iframe" .  

what i want to close the color box "iframe" and reloading the main page.

i searched for a long time but i can't find any solution.
Use 
parent.jQuery.fn.colorbox.close();

for closing colorbox, when submitting form.

like,  add the onClick event inside the submit button code:

&lt;input type='submit' value="Submit' onClick='parent.jQuery.fn.colorbox.close();'&gt;