一个类似csdn论坛的问题,不知道如果解决!

chinaworker 2003-06-10 01:42:17
就是当打开http://expert.csdn.net/Expert/topic/1882/1882800.xml?temp=.5290491的时间能检测到他不是在框架内显示的,自己跳到框架内在调用该页面呢?

...全文
55 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
chinaworker 2003-06-10
  • 打赏
  • 举报
回复
不明白啊

能不能再详细的说明下谢谢
希默软件 2003-06-10
  • 打赏
  • 举报
回复
You can do like this. In the "frameset.htm", you get the childFrame string first, then use document.write() to insert you child frame with special URL.

if(self==top) //不是在框架内显示的
window.location.href ="frameset.htm?childFrame=youChildPage.htm"

87,987

社区成员

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

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