我有一个FRAME:Left和Right,想用JavaScript中OPEN方法,根据Left中参数的不同,打开不同的页面,定位到Right上(也就是不弹出新的页面

zhouzq 2002-05-27 11:22:55
我有一个FRAME:Left和Right,想用JavaScript中OPEN方法,根据Left中参数的不同,打开不同的页面,定位到Right上(也就是不弹出新的页面)?)
...全文
62 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuzxit 2002-05-28
  • 打赏
  • 举报
回复
parent.right.location="a.htm"
水墨画 2002-05-28
  • 打赏
  • 举报
回复
left.asp
<a href="right.asp?id=<%=id%>" target="rightframe">文件名</a>


right.asp
id=request.querystring("id")
sql="select * from 表名 where id="&id
.....
.....
saucer 2002-05-28
  • 打赏
  • 举报
回复
window.open("whatever.html","Right桢的名字");

Right桢的名字是指在Frameset里Right桢的name
possible_Y 2002-05-28
  • 打赏
  • 举报
回复
什么样的参数怎么个不同法?
mmkk 2002-05-27
  • 打赏
  • 举报
回复
<FRAMESET ROWS="," COLS="100,*" frameborder="1">
<FRAME SRC="about:<input type=button value=test onclick=parent.document.frames[1].location='http://www.csdn.com'>" NAME="">
<FRAME SRC="about:123" NAME="frame2">
</FRAMESET>
weidegong 2002-05-27
  • 打赏
  • 举报
回复
用iframe写个例子吧,一样的:
<input type=button value=Open onclick=window.open('about:abc','show')>
<iframe id=show name=show ></iframe>

87,996

社区成员

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

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