javascript 打开模式窗口

function mWin(src, width, height, showScroll)

{   

    ret = window.showModalDialog(src, "", "location:No;status:No;help:No;dialogWidth:" + width + ";dialogHeight:" + height + ";scroll:" + showScroll + ";");    

    if (ret == "ok")

   {       

        window.location.reload(1); //模式窗口关闭时,重新刷新本页面。

   }

}

//注意在打开的模式窗口文件中要加上<base target="_self">,这样在此页面中的服务器控件操作时,不会打开新窗口。

posted @ 2012-12-14 09:01  甲壳虫博客  阅读(110)  评论(0编辑  收藏  举报