showModalDialog('frame.htm',window,'dialogWidth: 480px; dialogHeight: 360px; status: no; help: no');frame1.htm:
<input type=button value=close onclick="top.dialogArguments.location.reload(); top.close()">

解决方案 »

  1.   

    提示错误:top.dialogArguments为空或不是对象
      

  2.   

    try
    top.dialogArguments.location.reload()
    =>
    dialogArguments.location.reload();
      

  3.   

    梅花雪写的top没错的,楼主说了modal窗口里也是frameset
    楼主是不是没在showModalDialog的时候把window传进来?
      

  4.   

    to  myhyli() :
    感谢你的提醒,将window传进去可以刷新父窗口了,可是在模态窗口内刷新FrameSet另一个帧里的页面,而且右键不起作用?
      

  5.   

    模态窗口的顶级页使用frameset或iframe,若要刷新其它的frame中的页,只需要和正常窗口内包含的frameset或iframe那样刷新页面了.
    需要注意的是模态窗口的顶级页面不支持导航,所有改变顶级页的导航动作将导致新开窗口(比如 <a target=_self>或<form target=_self>)
      

  6.   

    使用top.FrameName.location.reload()或parent.FrameName.location.reload()都不起作用?
      

  7.   

    不是top.location.reload()将导致新开窗口
      

  8.   

    to yonghengdizhen(等季节一过,繁花就凋落) :
    应该怎么刷新?
      

  9.   

    在javascript里面
    先showModalDialog
    后location.reload();关闭弹出的窗口后,自动会刷新
      

  10.   

    是在窗口里面刷新另一个帧的页面!Internet Explorer has a couple non-standard extensions to the window object: window.showModalDialog() and window.showModelessDialog(), both of which create true dialog-type windows.  These dialogs are much better suited than normal windows (as created by window.open()) for use in web applications.  Unfortunately, though, these dialogs have several annoying bugs and limitations: 
    Window targeting is broken, so new opening URLs always opens new windows (even when a target window is explicitly set).  Each of these actions is affected: 
    Submitting forms 
    Opening hyperlinks 
    Programmatically using window.navigate(), window.location=url, window.location.assign(), window.location.reload(), window.location.replace() 
    The window.opener property is neglected.  It should refer to the opening window object (where window.showModalDialog() was called), but is empty instead. 
    Keyboard shortcuts are disabled. 
    IE's context menu is disabled. 
    Cookies are inconsistently available in the dialog. 
    The CSS accelerator property is broken.  It is simply ignored. 
    The document.title property is partially broken.  It can only be set declaratively with <title></title> tags when the page loads, but not programmatically at runtime (actually it can be changed at runtime, but those changes are never shown in the dialog's titlebar).
      

  11.   

    showModalDialog('frame.htm',window,'dialogWidth: 480px; dialogHeight: 360px; status: no; help: no');frame1.htm:
    <input type=button value=close onclick="dialogArguments[0].top.location.reload(); top.close()">
      

  12.   

    我说过顶级页面无法改变其location,只能通过客户端脚本更改页面内元素,比如document.write
    <a target=_self我没试过,<form target=_self我是试验过的,至于你说的没响应我估计是正常的反应.