I am using a thick box and want to refresh parent page when thicbox is closing. I use below code but it works sometime and dont work in some situations... waht is the problem with it?
<script>
function close2()
{
parent.tb_remove();
parent.location.reload(1)
}
</script>
<input type="submit" name="save_new_task" id="save_new_task" onclick="close2()" style="width: 100px;text-align: center;"
class="button button-primary button-medium" value="<?Php _e("register","creat_mysite");?>"/>