还是showModalDialog窗口的问题。在正常的页面中使用self.location.href='aa.htm'时能将当前页面导航至aa.htm页,但在showModalDialog打

saintKnight 2004-08-02 04:05:59
还是showModalDialog窗口的问题。在正常的页面中使用self.location.href='aa.htm'时能将当前页面导航至aa.htm页,但在showModalDialog打开的页面中使用self.location.href='aa.htm'时,则打开新的窗口并导航至aa.htm,为何不能在原有的窗口中直接导航至aa.htm?
...全文
185 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
gjd111686 2004-08-02
  • 打赏
  • 举报
回复
需要用<iframe>来做.
fason 2004-08-02
  • 打赏
  • 举报
回复
use this:
<script>
window.name="__self";
window.open("yoururl","__self")
</script>

87,901

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧