subModal彈出窗口 ,彈出頁面后如何刷新父頁面呢?
3 回答

慕森卡
TA貢獻1806條經驗 獲得超8個贊
function closeWindow(){
window.returnValue = "true"
window.close();
}
var returnValue = window.showModalDialog(url,object,sStyle);
if(returnValue == "true"){
alert("提交成功");
location.reload();
}
可能有所幫助吧,這個地方確實挺煩的

GCT1015
TA貢獻1827條經驗 獲得超4個贊
frame頁面是內嵌到父頁面的,當點擊iframe頁面的服務器控件時,默認只刷新iframe頁面,父頁面是不會刷新的。若想刷新父頁面,可以使用js來實現,如 1. parent.location.reload(); 這種方法會重新加載整個頁面。但如果要在原頁面的基礎上傳遞參數...
添加回答
舉報
0/150
提交
取消