//ShowMod.aspx
function Show() {
var sRet = window.showModalDialog('ModiMod.aspx', 'title', 'toolbar=no,location=no,top=100,left=200,width=650,height=300');
if (sRet == "refresh") {
window.location.reload();
}
window.close();
}
//ModiMod.aspx
function TranInfo() {
alert("Will close the window");
window.returnValue = "refresh";
window.close();
}
借助这些JS代码,可以实现简单模态效果,请大家指教。。。。。。