請告訴的我window.iframename.location.href=url在IE5中的替代方法?

flyxxxxx 2002-06-18 11:49:35
我的窗口中有一個iframe,在javascript中用了window.iframename.location.href=url,此方法在IE6中通過,在IE5中沒有任何作用,誰能告訴我可在IE5中使用的方法?
...全文
102 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
flyxxxxx 2002-06-19
  • 打赏
  • 举报
回复
以上方法都試過了,只有以下方法可以:
<a href="aaa.htm" target="aaa">open</a>
<iframe name="aaa" height="100" width="100"></iframe>
可我還要在腳本中處理一些變量后才知道它的href,我最後是用腳本將<a href="aaa.htm" target="aaa">open</a>中的href值改變才達到目地.
多謝各位參與.
flyxxxxx 2002-06-19
  • 打赏
  • 举报
回复
以上方法都試過了,只有以下方法可以:
<a href="aaa.htm" target="aaa">open</a>
<iframe name="aaa" height="100" width="100"></iframe>
可我還要在腳本中處理一些變量后才知道它的href,我最後是用腳本將<a href="aaa.htm" target="aaa">open</a>中的href值改變才達到目地.
多謝各位參與.
flyxxxxx 2002-06-19
  • 打赏
  • 举报
回复
以上方法都試過了,只有以下方法可以:
<a href="aaa.htm" target="aaa">open</a>
<iframe name="aaa" height="100" width="100"></iframe>
可我還要在腳本中處理一些變量后才知道它的href,我最後是用腳本將<a href="aaa.htm" target="aaa">open</a>中的href值改變才達到目地.
多謝各位參與.
qiushuiwuhen 2002-06-19
  • 打赏
  • 举报
回复
<input type=button value=click onclick="window.open('about:aaa.htm','ttt')"><br>
<iframe name=ttt height=80 width=200 border=0></iframe>


flyxxxxx 2002-06-19
  • 打赏
  • 举报
回复
只好用別的辦法了.
55555555..........
jhlcss 2002-06-19
  • 打赏
  • 举报
回复
繁体IE还这么多问题吗
lzx123 2002-06-18
  • 打赏
  • 举报
回复
IE5和IE6的区别?
meizz 2002-06-18
  • 打赏
  • 举报
回复
<input type=button value=click onclick="window.ttt.location.href='aaa.htm'"><br>
<iframe name=ttt height=80 width=200 border=0></iframe>
我在 IE5.0 中测试通过!
孟子E章 2002-06-18
  • 打赏
  • 举报
回复
document.all.iframeID.src=url
document.frames(iframname).location=url
flyxxxxx 2002-06-18
  • 打赏
  • 举报
回复
上面的方法都不行,我用的是繁體IE,只有用target時才行,但我必須在腳本中解決,
可用window.iframename.docuemnt.objname之類的方法訪問iframe中的對象.

誰還有方法,高分相送!100分不夠,另開貼子再給!
jhlcss 2002-06-18
  • 打赏
  • 举报
回复
window.iframename.document.url=url

87,996

社区成员

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

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