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()">
<input type=button value=close onclick="top.dialogArguments.location.reload(); top.close()">
top.dialogArguments.location.reload()
=>
dialogArguments.location.reload();
楼主是不是没在showModalDialog的时候把window传进来?
感谢你的提醒,将window传进去可以刷新父窗口了,可是在模态窗口内刷新FrameSet另一个帧里的页面,而且右键不起作用?
需要注意的是模态窗口的顶级页面不支持导航,所有改变顶级页的导航动作将导致新开窗口(比如 <a target=_self>或<form target=_self>)
应该怎么刷新?
先showModalDialog
后location.reload();关闭弹出的窗口后,自动会刷新
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).
<input type=button value=close onclick="dialogArguments[0].top.location.reload(); top.close()">
<a target=_self我没试过,<form target=_self我是试验过的,至于你说的没响应我估计是正常的反应.