showModalDialog刷新问题_showmodaldialog
showModalDialog刷新问题由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“showmodaldialog”。
JS:
// JavaScript Document
function showDialog(url, title, pageWidth, pageHeight){
if(typeof(pageWidth)!= 'number')pageWidth = 800;
if(typeof(pageHeight)!= 'number')pageHeight = 520;
var md = window.showModalDialog(url, title,“dialogWidth=”+pageWidth+“px;dialogHeight=”+pageHeight+“px;status=no;toolbar=no;location=no”);
if(md == undefined){
md = window.returnValue;
}
if(typeof(md)!= “undefined”){
if(md == “1”){
search();//刷新
}
}
}
父页:
showDialog(“Add.aspx?id=” + data + “&t=” +(new Date()).getTime(), “标题”, 650, 450);
子页:在里添加下面代码
function reload(){
window.parent.returnValue = '2';window.close();
}
按钮事件:
保存成功:
Response.Write(“ ”);;
或取消:
Response.Write(“ ”);
《showModalDialog刷新问题.docx》
将本文的Word文档下载,方便收藏和打印
推荐度:
点击下载文档
[其他范文]热门文章