在showModalDialog之后调用刷新自己的方法,不要在模态窗口中刷新父页面.

解决方案 »

  1.   

    showModalDialog('ttt.htm', window, 'dialogWidth: 480px; dialogHeight: 360px; status: no; help: no');
    注意, 第二个参数传递的是网页的 window 对象ttt.htm:
    window.dialogArguments.location.reload();
      

  2.   

    不行的
    我的页面是这样
    a.htm
    showModalDialog('b.htm');b.htm
    <frameset rows="0,*">
    <frame src="about:blank">
    <frame src="c.asp" scrolling="no" name="fr">
    </frameset>c.htm
    <input type=button bame="aa" value="关闭" onclick="javascript:window.close();opener.location.reload()">
    (我之所以用frame,是因为我在对话框中存在页面跳转,否则会弹出新页面)
    实现不了刷新,请大家帮帮忙
      

  3.   

    a.htm
    showModalDialog('b.htm');
    之后self.location.reload();肯定可以的,我都是这么做的.
      

  4.   

    在父窗口中这样写    
    var refresh = window.showModalDialog('你的子窗口的地址','','dialogWidth:800px; dialogHeight:400px; center:yes; status:no; directories:yes; scroll:no; Resizable=no; help: no;')
    if(refresh=="Y")
    self.location.reload();
    然后在子窗口中关闭事件发生时加个返回值window.returnValue="Y";
    这样就完全满足你的要求了