子页面添加按钮或链接,点击提交后关闭,刷新父页面。
最直接的方法,子页面中按钮添加:onclick="self.parent.tb_reshmove();"
tb_rushmove()是根据thickbox.js中tb_remove()写的方法,其实只加了一句:window.location.reload();
//刷新父页面,但为避免不操作而直接关闭也出现刷新的情况,重写的方法;当然还会有更好的方法
function tb_rushmove(){
$("#TB_imageOff").unbind("click");
$("#TB_closeWindowButton").unbind("click");
$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
$("#TB_load").remove();
if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
$("body","html").css({height: "auto", width: "auto"});
$("html").css("overflow","");
}
document.onkeydown = "";
document.onkeyup = "";
window.location.reload();//刷新
return false;
}