一个浏览器窗口如何刷新另一个窗口的内容?

jun 2000-06-05 10:55:00
打开浏览器,浏览一个页面,该页中通过window.open(...)打开了另一个窗口(窗口名为newwin1),现在在newwin1中如何刷新第一个窗口的内容?
...全文
368 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
zxh1972 2000-07-13
  • 打赏
  • 举报
回复
假设newwin1里有一个button,按下时刷新上一窗口
<type="button"......onclick='fresh()'>


<script language=javascript>
<!--
function fresh()
{
win2=window.opener;
win2.location.href="xxx.htm"//父窗口的URL
}
-->
</script>

}

linyu 2000-07-07
  • 打赏
  • 举报
回复
[例子]
1.打开窗口
function openrs(u) {
remote = window.open(u, 'remotewindow', 'width=570,height=450,menubars=yes,location=no,scrollbars=yes,left=0,top=0,');
if (remote != null) {
if (remote.opener == null)
remote.opener = self;
window.name = 'MyRoot';
remote.location.href = u;
remote.focus();
}
2。在子窗口指定父窗口的HREF
<a href="default.asp" target="MyRoot">更新</a>


popoli 2000-06-06
  • 打赏
  • 举报
回复
用window.opener.refresh
蝈蝈俊 2000-06-05
  • 打赏
  • 举报
回复
提交到另一个窗口的页面,提交ASP的窗口要命名。

<form name="back" action="default.asp" method="post" target="product">
jun 2000-06-05
  • 打赏
  • 举报
回复
对于一个普通的窗口,是如何给他命名的?这个窗口就是通过在浏览器直接输入URL打开d的,而不是由javascript:window.open(...)这样的语句打开的
jun 2000-06-05
  • 打赏
  • 举报
回复
对于一个普通的窗口,是如何给他命名的?这个窗口就是通过在浏览器直接输入URL打开d的,而不是由
smallxiong 2000-06-05
  • 打赏
  • 举报
回复
再用window.open方法打开窗口时,它会返回一个你打开窗口的
句柄

w=window.open("test.asp")
w.document.location.reload()

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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