请问左右分栏怎么用JS 在右侧的页面写一代码,刷新左侧的

yurongan 2004-01-19 04:16:21
左侧名为leftFrame, 右侧为rightFrame
请问如何在rightFrame中写一JS 代码以刷新左侧页面?
...全文
127 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
minghui000 2004-01-19
  • 打赏
  • 举报
回复
举个例子 从一页面更新另一页面

//index.htm
<SCRIPT>
newWindow=window.open('chile.htm','newWin','toolbar=yes,location=yes,scrollbars=yes,widht=300,height=100')
</SCRIPT>
<BODY>
<FORM NAME="outputForm">
<INPUT TYPE=TEXT SIZE=20 NAME="msgLine" VALUE="">
</FORM>
</BODY>


//chile.htm
<HEAD>
<SCRIPT>
function updateParent(textField){
opener.document.outputForm.msgLine.value="Hello"+textField.value+"!"
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<INPUT TYPE=TEXT onBlur="updateParent(this)" SIZE=20>
</FORM>
</BODY>
chnj1981 2004-01-19
  • 打赏
  • 举报
回复
我更慢了!
TrueAndFalse 2004-01-19
  • 打赏
  • 举报
回复
又慢
TrueAndFalse 2004-01-19
  • 打赏
  • 举报
回复
<input type=button name=bt1 onclick=javascript:window.top.rightframe.location.reload()>
peng0731 2004-01-19
  • 打赏
  • 举报
回复
parent.window.rightFrame.window.location.reload(true)

28,407

社区成员

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

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